Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data T distr sh ix prob = Cons {
- model :: T distr sh prob
- nameFromStateMap :: Array sh String
- stateFromNameMap :: Map String ix
- type Discrete symbol stateSh prob = T (Discrete symbol stateSh prob) stateSh (Index stateSh) prob
- type Gaussian emiSh stateSh a = T (Gaussian emiSh stateSh a) stateSh (Index stateSh) a
- fromModelAndNames :: (Indexed sh, Index sh ~ state) => T distr sh prob -> [String] -> T distr sh state prob
- toCSV :: (ToCSV distr, Indexed sh, Real prob, Show prob) => T distr sh ix prob -> String
- fromCSV :: (FromCSV distr, StateShape distr ~ stateSh, Indexed stateSh, Index stateSh ~ state, Real prob, Read prob) => (Int -> stateSh) -> String -> Exceptional String (T distr stateSh state prob)
Documentation
data T distr sh ix prob Source #
A Hidden Markov Model with names for each state.
Although nameFromStateMap
and stateFromNameMap
are exported
you must be careful to keep them consistent when you alter them.
Cons | |
|
type Discrete symbol stateSh prob = T (Discrete symbol stateSh prob) stateSh (Index stateSh) prob Source #