ToPS
|
This class represents a context tree. More...
#include <ContextTree.hpp>
Public Member Functions | |
ContextTreeNodePtr | getRoot () const |
return the root of the tree | |
ContextTreeNodePtr | createContext () |
Create new context. | |
ContextTreeNodePtr | getContext (const Sequence &s, int i) |
get the context for the sequence s[i-1], s[i-2], s[i-3]... | |
void | normalize (ProbabilisticModelPtr old, double pseudocount, int i) |
normalize using a tree to get the a priori probabilities | |
void | normalize (ProbabilisticModelPtr old, double pseudocount) |
normalize using a tree to get the a priori probabilities | |
void | pruneTree (double delta) |
Prune similar subtrees. | |
void | pruneTreeSmallSampleSize (int small_) |
Prune subtrees with small counters. | |
void | initializeContextTreeRissanen (const SequenceEntryList &sequences) |
Initialize context tree using the Rissanen algorithm. |
This class represents a context tree.
Definition at line 123 of file ContextTree.hpp.