silverfoxxxx/package1: K Means Clustering on Data Matrix

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).

Getting started

Package details

AuthorJiayu Zhang
MaintainerJiayu Zhang <jiayuzh@umich.edu>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("silverfoxxxx/package1")
silverfoxxxx/package1 documentation built on Nov. 25, 2019, 10:22 p.m.