Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- cleanCounts :: Counts elem -> Counts elem
- initializeCounts :: (Ord elem, Show elem) => Locations elem -> Counts elem
- updateCounts :: Ord elem => (Int -> Int -> Int) -> Morph elem -> Int -> Counts elem -> Counts elem
- addCounts :: Ord elem => Morph elem -> Int -> Counts elem -> Counts elem
- subtractCounts :: Ord elem => Morph elem -> Int -> Counts elem -> Counts elem
Documentation
cleanCounts :: Counts elem -> Counts elem Source #
Remove zero-elements from a count object
initializeCounts :: (Ord elem, Show elem) => Locations elem -> Counts elem Source #
Initialize word counts from scratch, given boundary assignments
updateCounts :: Ord elem => (Int -> Int -> Int) -> Morph elem -> Int -> Counts elem -> Counts elem Source #
Use provided function to update counts for a word