class Distribution(__builtin__.object) | Represents a probability distribution over a set of categories | | Methods defined here: | | MaximumLikelihoodState(self) | Returns the state with the greatest likelihood | | Sample(self) | Picks a random sample from the distribution | | States(self) | Yields the Distribution's states | | Update(self, categories) | Updates each category in the probability distiribution, according to | a dictionary of numerator and denominator values | | __call__(self, item) | Gives the probability of item | | __iadd__(self, Dist2) | Updates the Distribution given another Distribution with the same states | | __init__(self, categories, k=0) | The distribution may be initialised from a list of categories or a | dictionary of category frequencies. In the latter case, Laplacian | smoothing may be used | | __mul__(self, scalar) | Returns the probability of each item, multiplied by a scalar | | copy(self) | Returns a copy of the Distribution | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined)

class HMM(BayesianModel) | Represents a Hidden Markov Model | | Method resolution order: | HMM | BayesianModel | __builtin__.object | | Methods defined here: | | Analyse(self, Sequence, MaximumLikelihood=False) | Yields the an estimate of the internal states that generated a Sequence | of observed values, either as the Maximum Likelihood state | (Maximumlikelihood=True) or as a Distribution (MaximumLikelihood=False) | | MaximumLikelihoodState(self, Observations=None) | Returns the maximum likelihood of the internal state. If Observations | is None, defaults to the maximum likelihood of the the Current state, or | the Prior if self.Current is None | | Outcomes(self) | | Predict(self) | Returns a Distribution representing the probabilities of the next | state given the current state | | PriorProbs(self, Observations) | Returns a Distribution the prior probabilities of the HMM's states | given a Distribution of Observations | | Train(self, Sequence) | Trains the HMM from a sequence of observations | | Update(self, Observations) | Updates the Prior probabilities, TransitionProbs | and Conditionals given Observations | | __call__(self, PriorProbs=None) | Returns a Distribution of outcomes given PriorProbs, which defaults | to self.Current if it is set, or self.Prior otherwise | | __init__(self, states, outcomes) | states is a list or dictionary of states, outcomes is a dictionary | mapping each state in states to a Distribution of the output states | | ---------------------------------------------------------------------- | Methods inherited from BayesianModel: | | MaximumLikelihoodOutcome(self, PriorProbs=None) | Returns the maximum likelihood outcome given PriorProbs | | States(self) | Returns an iterator over the possible states | | __iadd__(self, Model2) | Updates the BayesianModel with the data in another BayesianModel | | ---------------------------------------------------------------------- | Data descriptors inherited from BayesianModel: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined)