Description Usage Arguments Value
Global objective function and gradient computations with respect to cluster centroid vectors and their weights.
1 | Gradient_cpp(x, SK, W, K)
|
x |
is a data vector. Its first K*n components are cluster centroids and its last K components are the centroid weights. |
SK |
is a data sketch vector. |
W |
is a frequency matrix. |
K |
is a number of cluster centroids. |
gradient
is a gradient vector
objective
is an objective function value \|SK - ∑_{k=1}^K α_k Sketch(c_k, W)\|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.