hmm-lapack-0.3: Hidden Markov Models using HMatrix primitives
Math.HiddenMarkovModel.Example.SineWave
Description
Warning: do not import that module, it is only intended for demonstration
Example of an HMM with continuous emissions. We train a model to accept sine waves of a certain frequency.
There are four hidden states: Rising, High, Falling, Low.
Rising
High
Falling
Low
data State Source
Constructors
Instances
type StateSet = Enumeration StateSource
stateSet :: StateSetSource
type HMM = Gaussian () StateSet DoubleSource
hmm :: HMMSource
stateVector :: Double -> Double -> Double -> Double -> Vector StateSet DoubleSource
sineWaveLabeled :: T [] (State, Double)Source
sineWave :: T [] DoubleSource
revealed :: T [] StateSource
hmmTrainedSupervised :: HMMSource
hmmTrainedUnsupervised :: HMMSource
hmmIterativelyTrained :: HMMSource