clustering-0.2.0: High performance clustering algorithms

Copyright(c) 2015 Kai Zhang
LicenseMIT
Maintainerkai@kzhang.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

AI.Clustering.KMeans.Types

Description

Synopsis

Documentation

data KMeans Source

Results from running kmeans

Constructors

KMeans 

Fields

_clusters :: Vector Int

A vector of integers (0 ~ k-1) indicating the cluster to which each point is allocated.

_centers :: Matrix Double

A matrix of cluster centers.

Instances

data Method Source

Different initialization methods

Constructors

Forgy

The Forgy method randomly chooses k unique observations from the data set and uses these as the initial means.

KMeansPP

K-means++ algorithm.