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

Safe HaskellNone

Algorithms.Lloyd.Sequential

Documentation

data Point a Source

Constructors

Point 

Fields

point :: Vector Double
 
value :: a
 

Instances

Eq (Point a) 

data Cluster Source

Constructors

Cluster 

Instances

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

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

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