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

Class Gain

SM --+
     |
    Gain

Machine whose output is the input, but multiplied by k. Specify k in initializer.

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

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

Class Variables

Inherited from SM: legalInputs, name, startState

Instance Variables

Inherited from SM: state

Method Details

__init__(self, k)
(Constructor)

 
Parameters:
  • k - gain

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)