onekmeans | R Documentation |
Initializes centroids based on a given membership function matrix or randomly. Iterate once over the input data to update the membership function matrix assigning objects to the closest centroids.
onekmeans(Y_i_qr, G, U_i_g = NULL, seed = NULL)
Y_i_qr |
Input data to group/cluster. |
G |
Number of clusters to find. |
U_i_g |
Initial membership matrix for the I objects. |
seed |
Seed for random values generation. |
updated membership matrix U_i_g.
k_meansMethodssimuclustfactor
X_i_jk = generate_dataset(seed=0)$X_i_jk onekmeans(X_i_jk, G=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.