liquid-prelude-0.8.10.2: General utility modules for LiquidHaskell
Safe HaskellNone
LanguageHaskell2010

KMeansHelper

Synopsis

Documentation

groupBy :: (a -> a -> Bool) -> [a] -> [[a]] Source #

Fixed-Length Lists

N Dimensional Points

Clustering

Grouping By a Predicate -------------------------------------

partition :: Int -> [a] -> [[a]] Source #

Partitioning By a Size --------------------------------------

zipWith :: (t1 -> t2 -> a) -> [t1] -> [t2] -> [a] Source #

Safe Zipping -----------------------------------------------------

transpose :: Int -> Int -> [[a]] -> [[a]] Source #

Matrix Transposition -------------------------------------------