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

Safe HaskellNone

Algorithms.Lloyd.Strategies

Documentation

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

with :: Strategy a -> a -> aSource

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

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

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