kmeans-par-1.3.0: Sequential and parallel implementations of Lloyd's algorithm.

Safe HaskellNone

Algorithms.Lloyd.Sequential

Documentation

data Point Source

Constructors

Point 

Fields

point :: Vector Double
 

data Cluster Source

Constructors

Cluster 

Fields

identifier :: Int
 
centroid :: Point
 

Instances

step :: Metric a => (Vector Double -> a) -> [Cluster] -> [Point] -> [Cluster]Source

computeClusters' :: Metric a => Int -> (Vector Double -> a) -> Int -> [Point] -> [Cluster] -> [Cluster]Source

kmeans :: Metric a => Int -> (Vector Double -> a) -> [Point] -> [Cluster] -> Vector (Vector Point)Source