mosaic.sim.neuron.netinputs
Class RateCodedInputVector
java.lang.Object
|
+--mosaic.sim.neuron.netinputs.RateCodedInputVector
- All Implemented Interfaces:
- VectorInputCoder
- public class RateCodedInputVector
- extends java.lang.Object
- implements VectorInputCoder
This class implements a spike source using rate coding.
It does for a vector what RateCodedInputSingle does for a single real
numbered value. In fact, it uses RateCodedInputSingle for doing the real
work when given a input vector.
This class implements VectorInput, as does TemporalCodedInput. Therefore,
these coding schemes should be easily interchangeable.
Field Summary |
protected java.util.ArrayList |
outputs
The list of outputs that used for emitting spike events. |
Constructor Summary |
RateCodedInputVector(int num)
Creates a new TemporalCodedInput object and initializes the outputs. |
Method Summary |
void |
enterVector(double[] vector)
Implementation of VectorInput.enterVector. |
NeuronOutput |
getOutput(int index)
Implementation of VectorInput.getOutput. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
outputs
protected java.util.ArrayList outputs
- The list of outputs that used for emitting spike events. The number of
outputs is equal to the length of the input vector.
RateCodedInputVector
public RateCodedInputVector(int num)
- Creates a new TemporalCodedInput object and initializes the outputs.
- Parameters:
num
- The number of outputs, it must be equal to the length of the
analog input vectors that will be given to enterVector().
enterVector
public void enterVector(double[] vector)
throws CodingException
- Implementation of VectorInput.enterVector.
- Specified by:
enterVector
in interface VectorInputCoder
- Following copied from interface:
mosaic.sim.neuron.netinputs.VectorInputCoder
- Parameters:
vector
- The input vector to be used.
getOutput
public NeuronOutput getOutput(int index)
- Implementation of VectorInput.getOutput.
- Specified by:
getOutput
in interface VectorInputCoder
- Following copied from interface:
mosaic.sim.neuron.netinputs.VectorInputCoder
- Parameters:
index
- The number of the output to return.