stimulusdelayreward
Class FlexibleSignalStateRepresentation

java.lang.Object
  |
  +--lnsc.page.AbstractStateRepresentation
        |
        +--stimulusdelayreward.FlexibleSignalStateRepresentation
All Implemented Interfaces:
java.io.Serializable, StateRepresentation

public class FlexibleSignalStateRepresentation
extends AbstractStateRepresentation

This class allows automatic conversion of MonkeyObservableState into up to 3 signals (bias, CS, and US, in that order).

See Also:
Serialized Form

Constructor Summary
FlexibleSignalStateRepresentation(boolean bias, boolean cs, boolean us)
          Creates a flexible signal representation that may contain any of bias, cs and us (in that order) depending on the flags below.
 
Method Summary
 double[] getRepresentation(State s)
          Converts the state into a vector of real based on specific representation.
 
Methods inherited from class lnsc.page.AbstractStateRepresentation
getOutputCount, isStateless, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexibleSignalStateRepresentation

public FlexibleSignalStateRepresentation(boolean bias,
                                         boolean cs,
                                         boolean us)
Creates a flexible signal representation that may contain any of bias, cs and us (in that order) depending on the flags below.

Parameters:
bias - true for the representation to have a bias signal of 1
cs - true for the representation to contain the CS signal
us - true for the representation to contain the US signal
Method Detail

getRepresentation

public double[] getRepresentation(State s)
Description copied from interface: StateRepresentation
Converts the state into a vector of real based on specific representation.

Parameters:
s - State to be converted.
Returns:
Real vector representation of the state.