|
libcrn
3.9.5
A document image processing library
|
Semi-continuous gaussian HMM class. More...
#include <CRNGaussianSCHMM.h>
Inheritance diagram for crn::GaussianSCHMM:
Collaboration diagram for crn::GaussianSCHMM:Public Member Functions | |
| GaussianSCHMM (size_t nstates, size_t nsymbs) | |
| Constructor. More... | |
| GaussianSCHMM (const GaussianSCHMM &h)=default | |
| Copy constructor. More... | |
| virtual | ~GaussianSCHMM () override |
| Destructor. More... | |
| GaussianSCHMM & | operator= (const GaussianSCHMM &)=default |
| GaussianSCHMM (GaussianSCHMM &&)=default | |
| GaussianSCHMM & | operator= (GaussianSCHMM &&)=default |
| size_t | GetNbStates () const noexcept |
| Returns the number of states. More... | |
| size_t | GetSymbolDimension () const noexcept |
| Returns the dimension of observable symbol space. More... | |
| SquareMatrixDouble | GetStateTransitionProbability () const |
| Returns the state transition probability matrix. More... | |
| MatrixDouble | GetFirstStateProbability () const |
| Returns the first state probability matrix. More... | |
| const std::vector < MultivariateGaussianMixture > & | GetStateGivenSymbolProbability () const |
| Returns all the state probability laws. More... | |
| MultivariateGaussianMixture | GetStateGivenSymbolProbability (size_t k) const |
| Returns a state probability law. More... | |
| MatrixDouble | GetStateGivenSymbolProbability (const MatrixDouble &x) const |
| Returns all the state probabilities for a symbol. More... | |
| double | GetStateGivenSymbolProbability (size_t k, const MatrixDouble &x) const |
| Returns a state probability for a symbol. More... | |
| void | SetStateTransitionProbability (const SquareMatrixDouble &a) |
| Sets the state transition probability matrix. More... | |
| void | SetFirstStateProbability (const MatrixDouble &p) |
| Sets the first state probability matrix. More... | |
| void | BaumWelchSingle (const MatrixDouble &observed, unsigned int maxIter) |
| Learning from one sequence. More... | |
Public Member Functions inherited from crn::Object | |
| virtual | ~Object ()=default |
Semi-continuous gaussian HMM class.
Semi-continuous gaussian Hidden Markov Model
Definition at line 41 of file CRNGaussianSCHMM.h.
| GaussianSCHMM::GaussianSCHMM | ( | size_t | nstates, |
| size_t | nsymbs | ||
| ) |
Constructor.
Constructor
| [in] | nstates | number of states |
| [in] | nsymbs | number of symbols |
Definition at line 43 of file CRNGaussianSCHMM.cpp.
|
default |
Copy constructor.
|
inlineoverridevirtual |
Destructor.
Definition at line 50 of file CRNGaussianSCHMM.h.
|
default |
| void GaussianSCHMM::BaumWelchSingle | ( | const MatrixDouble & | Observed, |
| unsigned int | MaxIter | ||
| ) |
Learning from one sequence.
HMM model training with Baum-Welch procedure. Training with one observation sequence.
| [in] | Observed | the observed sequence |
| [in] | MaxIter | the maximum number of iterations |
Definition at line 220 of file CRNGaussianSCHMM.cpp.
|
inline |
Returns the first state probability matrix.
Definition at line 64 of file CRNGaussianSCHMM.h.
|
inlinenoexcept |
Returns the number of states.
Definition at line 57 of file CRNGaussianSCHMM.h.
|
inline |
Returns all the state probability laws.
Definition at line 66 of file CRNGaussianSCHMM.h.
| MultivariateGaussianMixture GaussianSCHMM::GetStateGivenSymbolProbability | ( | size_t | k | ) | const |
Returns a state probability law.
Return a state probability law
| [in] | k | the state |
| ExceptionDomain | index value out of range |
Definition at line 59 of file CRNGaussianSCHMM.cpp.
| MatrixDouble GaussianSCHMM::GetStateGivenSymbolProbability | ( | const MatrixDouble & | x | ) | const |
Returns all the state probabilities for a symbol.
Return all the state probabilities for a symbol
| [in] | x | the symbol (a column vector) |
| ExceptionDimension | the vector has bad dimensions |
Definition at line 93 of file CRNGaussianSCHMM.cpp.
| double GaussianSCHMM::GetStateGivenSymbolProbability | ( | size_t | k, |
| const MatrixDouble & | x | ||
| ) | const |
Returns a state probability for a symbol.
Return a state probability for a symbol
| [in] | k | the state |
| [in] | x | the symbol (a column vector) |
Definition at line 76 of file CRNGaussianSCHMM.cpp.
|
inline |
Returns the state transition probability matrix.
Definition at line 62 of file CRNGaussianSCHMM.h.
|
inlinenoexcept |
Returns the dimension of observable symbol space.
Definition at line 59 of file CRNGaussianSCHMM.h.
|
default |
|
default |
| void GaussianSCHMM::SetFirstStateProbability | ( | const MatrixDouble & | p | ) |
Sets the first state probability matrix.
Set the first state probability matrix
| [in] | p | the new first state probability matrix |
Definition at line 125 of file CRNGaussianSCHMM.cpp.
| void GaussianSCHMM::SetStateTransitionProbability | ( | const SquareMatrixDouble & | a | ) |
Sets the state transition probability matrix.
Set the state transition probability matrix
| [in] | a | the new state transition probability matrix |
Definition at line 114 of file CRNGaussianSCHMM.cpp.
1.8.6