Description Usage Arguments Examples
centroid_matrix
rowNorms
1 | centroid_matrix(x, m)
|
x |
|
m |
|
1 2 3 4 5 6 7 8 9 | # X is a matrix of unlabelled training examples
# X <- matrix(rep( 0, 10), ncol = 2)
# y is a vector of initial centroids
centroids <- c(1,10)
# X - centroid_matrix(x = centroids, m = nrow(X))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.