Module seFast :: Class StateEstimator
[frames] | no frames]

Class StateEstimator

sm.SM --+
        |
       StateEstimator
Known Subclasses:

A state machine that performs state estimation, based on an input stream of (input, output pairs) and a stochastic state-machine model. The output at time t is a dist.DDist object, representing the 'belief' distribution P(s | i_0, ... i_t, o_0, ..., o_t)

Instance Methods
 
__init__(self, model)
 
getNextValues(self, state, inp)
Default version of this method.

Inherited from sm.SM: check, doTraceTasks, done, getStartState, guaranteeName, isDone, printDebugInfo, run, start, step, transduce, transduceF

Class Variables

Inherited from sm.SM: legalInputs, name

Instance Variables
  startState
The state of this machine is the same as its output: the distribution over states of the subject machine given the input sequence so far; the start state of this machine is the starting distribution of the subject machine.
Method Details

__init__(self, model)
(Constructor)

 
Parameters:
  • model - a ssm.StochasticStateMachine object, specifying the transition and observation models

getNextValues(self, state, inp)

 

Default version of this method. If a subclass only defines getNextState, then we assume that the output of the machine is the same as its next state.

Parameters:
  • state - Distribution over states of the subject machine, represented as a dist.Dist object
  • inp - A pair (o, a) of the input and output of the subject machine on this time step. If this parameter is None, then no update occurs and the state is returned, unchanged.
Overrides: sm.SM.getNextValues