Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Distance = Double
- type DistFn a = a -> a -> Distance
- type Size = Int
- data Dendrogram a
- = Leaf !a
- | Branch !Size !Distance !(Dendrogram a) !(Dendrogram a)
- size :: Dendrogram a -> Int
- data DistanceMat = DistanceMat !Int !(Vector Double)
- (!) :: DistanceMat -> (Int, Int) -> Double
- idx :: Int -> Int -> Int -> Int
- computeDists :: Vector v a => DistFn a -> v a -> DistanceMat
- computeDists' :: Vector v a => DistFn a -> v a -> DistanceMat
Documentation
data Dendrogram a Source #
Leaf !a | |
Branch !Size !Distance !(Dendrogram a) !(Dendrogram a) |
Functor Dendrogram Source # | |
Eq a => Eq (Dendrogram a) Source # | |
Show a => Show (Dendrogram a) Source # | |
Binary a => Binary (Dendrogram a) Source # | |
size :: Dendrogram a -> Int Source #
O(1) Return the size of a dendrogram
computeDists :: Vector v a => DistFn a -> v a -> DistanceMat Source #
compute distance matrix
computeDists' :: Vector v a => DistFn a -> v a -> DistanceMat Source #
compute distance matrix in parallel