View source: R/solve_wkmeans.R
solve_wkmeans | R Documentation |
Weighted KMeans solution approach
solve_wkmeans(instance, no_of_centers = 5, type = c("flexclust", "swkm"))
instance |
A list returned from generate_2d_instance |
no_of_centers |
The number of base locations to generate |
type |
The type of WKmeans implematation to use, options are "flexclust" or "swkm" |
A list
instance <- generate_2d_instance() # solution <- solve_wkmeans(instance = instance, no_of_centers = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.