kmeans-vector-0.2: An implementation of the kmeans clustering algorithm based on the vector package

Stabilityexperimental
MaintainerAlp Mestanogullari <alpmestan@gmail.com>
Safe HaskellSafe-Infered

Math.KMeans

Description

An implementation of the k-means clustering algorithm based on the efficient vector package.

Synopsis

Documentation

kmeans :: Int -> [Point a] -> [[Point a]]Source

Performs the k-means clustering algorithm using trying to use k clusters on the given list of points

type Point a = (Vector Double, a)Source

Type holding an object of any type and its associated feature vector

data Cluster Source

Type representing a cluster (group) of vectors by its center and an id

Constructors

Cluster 

Fields

cid :: !Int
 
center :: !(Vector Double)