Safe HaskellNone



Implementation of the cluster metric



optimalCVScore :: List -> Double Source #

Compute the lower bound of the cluster score, i.e., the sum of the minimal values for all cluster score values that are not 0 on a perfectly balanced cluster.

compClusterStatistics :: [Node] -> [Statistics] Source #

Compute the statistics of a cluster.

updateClusterStatisticsTwice :: [Statistics] -> (Node, Node) -> (Node, Node) -> [Statistics] Source #

Update a cluster statistics twice.

compCVfromStats :: [Statistics] -> Double Source #

Compute the cluster score from its statistics

compCVNodes :: [Node] -> Double Source #

Compute the total variance.

compCV :: List -> Double Source #

Wrapper over compCVNodes for callers that have a List.

printStats :: String -> List -> String Source #

Shows statistics for a given node list.