Nengo.ca

ca.nengo.model.nef.impl
Class DefaultExpressModel

java.lang.Object
  extended by ca.nengo.model.nef.impl.AdditiveGaussianExpressModel
      extended by ca.nengo.model.nef.impl.DefaultExpressModel
All Implemented Interfaces:
ExpressModel, Resettable

public class DefaultExpressModel
extends AdditiveGaussianExpressModel

An ExpressModel that determines simplified noise and distortion models from simulations. Noise variance & autocorrelation are assumed constant per output and are determined from an example simulation. Distortion is interpolated from example simulations. For 1D ensembles, distortion is interpolated from samples in the encoded domain. For higher-dimensional ensembles, distortion is treated as a function of radial distance from zero, taken from samples in the first dimension.


Constructor Summary
DefaultExpressModel(DecodedOrigin origin)
           
 
Method Summary
 float[] getDistortion(float[] state, float[] directValues)
           
 float[] getNoiseSD(float[] state, float[] directValues)
           
 void update()
          To be called after a change in radii or decoders.
 
Methods inherited from class ca.nengo.model.nef.impl.AdditiveGaussianExpressModel
getNoise, getOutput, getR, reset, setR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExpressModel

public DefaultExpressModel(DecodedOrigin origin)
                    throws SimulationException
Parameters:
origin - The DecodedOrigin for which spike effects are to be modelled
Throws:
SimulationException
Method Detail

update

public void update()
            throws SimulationException
Description copied from interface: ExpressModel
To be called after a change in radii or decoders.

Throws:
SimulationException

getNoiseSD

public float[] getNoiseSD(float[] state,
                          float[] directValues)
Specified by:
getNoiseSD in class AdditiveGaussianExpressModel
Parameters:
state - The value represented by the associated NEFEnsemble
directValues - DIRECT mode output values of an Origin
Returns:
Standard deviation of noise to be added to each DIRECT output value
See Also:
ca.nengo.model.nef.impl.AdditiveGaussianExpressModel#getNoiseSD(float[])

getDistortion

public float[] getDistortion(float[] state,
                             float[] directValues)
Specified by:
getDistortion in class AdditiveGaussianExpressModel
Parameters:
state - The value represented by the associated NEFEnsemble
directValues - DIRECT mode output values of an Origin
Returns:
Static distortion error to be added to each DIRECT output value
See Also:
ca.nengo.model.nef.impl.AdditiveGaussianExpressModel#getDistortion(float[])

Nengo.ca