ca.nengo.model.nef.impl
Class DefaultExpressModel
java.lang.Object
ca.nengo.model.nef.impl.AdditiveGaussianExpressModel
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExpressModel
public DefaultExpressModel(DecodedOrigin origin)
throws SimulationException
- Parameters:
origin
- The DecodedOrigin for which spike effects are to be modelled
- Throws:
SimulationException
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 NEFEnsembledirectValues
- 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 NEFEnsembledirectValues
- 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[])