This package inputs a numeric data matrix x and an explicit integer k for the number of clusters. k means clustering includes 4 steps: Initialization: Select K random "centroids" from points Assignment: Each point is assigned to nearest centroids cluster using Euclidean distance. Update: Calculate the cluster mean to be new centroids. Repeat Assignment and Update to convergence of centroids at tolerance level (default is 1e-5).
Package details |
|
|---|---|
| Author | Jiayu Zhang |
| Maintainer | Jiayu Zhang <jiayuzh@umich.edu> |
| License | MIT + file LICENSE |
| Version | 0.1.0 |
| Package repository | View on GitHub |
| Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.