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

Safe HaskellNone

Algorithms.Lloyd.Strategies

Documentation

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

with :: Strategy a -> a -> aSource

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

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