Module sm :: Class FeedbackSubtract
[frames] | no frames]

Class FeedbackSubtract

SM --+
     |
    FeedbackSubtract

Takes two machines, m1 and m2. Output of the composite machine is the output to m1. Output of m1 is fed back through m2; that result is subtracted from the input and used as the 'error' signal, which is the input to m1. Transformation is the one described by Black's formula.

Instance Methods
 
__init__(self, m1, m2, name=None)
 
startState(self)
By default, startState is none
 
getNextValues(self, state, inp)
Default version of this method.
 
done(self, state)
By default, machines don't terminate
 
printDebugInfo(self, depth, state, nextState, inp, out, debugParams)
Default method for printing out all of the debugging information for a primitive machine.

Inherited from SM: check, doTraceTasks, getStartState, guaranteeName, isDone, run, start, step, transduce, transduceF

Class Variables

Inherited from SM: legalInputs, name

Instance Variables

Inherited from SM: state

Method Details

startState(self)

 

By default, startState is none

Overrides: startState

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.

Overrides: SM.getNextValues
(inherited documentation)

done(self, state)

 

By default, machines don't terminate

Overrides: SM.done
(inherited documentation)

printDebugInfo(self, depth, state, nextState, inp, out, debugParams)

 

Default method for printing out all of the debugging information for a primitive machine.

Overrides: SM.printDebugInfo
(inherited documentation)