|
OpenMS
2.6.0
|
Go to the documentation of this file.
79 void setName(
const String & name);
83 const String & getName()
const;
86 void setHidden(
bool hidden);
89 bool isHidden()
const;
92 void addPredecessorState(
HMMState * state);
95 void deletePredecessorState(
HMMState * state);
98 void addSuccessorState(
HMMState * state);
101 void deleteSuccessorState(
HMMState * state);
104 const std::set<HMMState *> & getPredecessorStates()
const;
107 const std::set<HMMState *> & getSuccessorStates()
const;
161 void writeGraphMLFile(
const String & filename);
164 void write(std::ostream & out)
const;
167 double getTransitionProbability(
const String & s1,
const String & s2)
const;
170 void setTransitionProbability(
const String & s1,
const String & s2,
double prob);
173 Size getNumberOfStates()
const;
179 void addNewState(
const String & name);
182 void addSynonymTransition(
const String & name1,
const String & name2,
const String & synonym1,
const String & synonym2);
191 void setInitialTransitionProbability(
const String & state,
double prob);
194 void clearInitialTransitionProbabilities();
197 void setTrainingEmissionProbability(
const String & state,
double prob);
200 void clearTrainingEmissionProbabilities();
203 void enableTransition(
const String & s1,
const String & s2);
206 void disableTransition(
const String & s1,
const String & s2);
209 void disableTransitions();
224 void estimateUntrainedTransitions();
236 void setPseudoCounts(
double pseudo_counts);
239 double getPseudoCounts()
const;
241 void setVariableModifications(
const StringList & modifications);
253 void setTrainingEmissionProbability_(
HMMState * state,
double prob);
263 void calculateForwardPart_();
266 void calculateBackwardPart_();
269 double getForwardVariable_(
HMMState *);
272 double getBackwardVariable_(
HMMState *);
std::set< std::pair< HMMState *, HMMState * > > trained_trans_
Definition: HiddenMarkovModel.h:309
double pseudo_counts_
Definition: HiddenMarkovModel.h:321
A more convenient string class.
Definition: String.h:59
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Map< HMMState *, double > backward_
Definition: HiddenMarkovModel.h:294
StringList var_modifications_
Definition: HiddenMarkovModel.h:326
Map< HMMState *, double > forward_
Definition: HiddenMarkovModel.h:291
std::set< HMMState * > pre_states_
Definition: HiddenMarkovModel.h:119
Map< HMMState *, Map< HMMState *, double > > count_trans_
Definition: HiddenMarkovModel.h:280
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Map< HMMState *, Map< HMMState *, std::vector< double > > > count_trans_all_
Definition: HiddenMarkovModel.h:282
Map< HMMState *, Map< HMMState *, Size > > training_steps_count_
Definition: HiddenMarkovModel.h:288
Map< HMMState *, double > train_emission_prob_
Definition: HiddenMarkovModel.h:300
std::set< HMMState * > states_
Definition: HiddenMarkovModel.h:306
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
String name_
Definition: HiddenMarkovModel.h:116
Map< HMMState *, Map< HMMState *, double > > trans_
Definition: HiddenMarkovModel.h:277
std::set< HMMState * > succ_states_
Definition: HiddenMarkovModel.h:122
Map< HMMState *, double > init_prob_
Definition: HiddenMarkovModel.h:303
Hidden Markov Model implementation of PILIS.
Definition: HiddenMarkovModel.h:133
Map< HMMState *, Map< HMMState *, std::vector< double > > > train_count_trans_all_
Definition: HiddenMarkovModel.h:285
Map< String, HMMState * > name_to_state_
Definition: HiddenMarkovModel.h:297
bool hidden_
Definition: HiddenMarkovModel.h:113
Map< String, Map< String, std::pair< String, String > > > synonym_trans_names_
Definition: HiddenMarkovModel.h:312
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
Map< HMMState *, std::set< HMMState * > > enabled_trans_
Definition: HiddenMarkovModel.h:318
Hidden Markov Model State class for the Hidden Markov Model.
Definition: HiddenMarkovModel.h:53
Map< HMMState *, Map< HMMState *, std::pair< HMMState *, HMMState * > > > synonym_trans_
Definition: HiddenMarkovModel.h:315