hmm-lapack-0.3.0.3: Hidden Markov Models using LAPACK primitives

Safe HaskellNone
LanguageHaskell2010

Math.HiddenMarkovModel.Named

Synopsis

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.

Constructors

Cons 

Fields

Instances
(C sh, Storable prob, Show sh, Show prob, Show distr, Show ix) => Show (T distr sh ix prob) Source # 
Instance details

Defined in Math.HiddenMarkovModel.Named

Methods

showsPrec :: Int -> T distr sh ix prob -> ShowS #

show :: T distr sh ix prob -> String #

showList :: [T distr sh ix prob] -> ShowS #

(NFData distr, NFData sh, NFData ix, NFData prob, C sh, Storable prob) => NFData (T distr sh ix prob) Source # 
Instance details

Defined in Math.HiddenMarkovModel.Named

Methods

rnf :: T distr sh ix prob -> () #

type Discrete symbol stateSh prob = T (Discrete symbol stateSh prob) stateSh (Index stateSh) prob Source #

type Gaussian emiSh stateSh a = T (Gaussian emiSh stateSh a) stateSh (Index stateSh) a Source #

fromModelAndNames :: (Indexed sh, Index sh ~ state) => T distr sh prob -> [String] -> T distr sh state prob Source #

toCSV :: (ToCSV distr, Indexed sh, Real prob, Show prob) => T distr sh ix prob -> String Source #

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) Source #