public abstract class AdditiveGaussianExpressModel extends java.lang.Object implements ExpressModel, Resettable
Constructor and Description |
---|
AdditiveGaussianExpressModel(int dim) |
Modifier and Type | Method and Description |
---|---|
abstract float[] |
getDistortion(float[] state,
float[] directOutput) |
float[] |
getNoise(float[] state,
float[] directOutput)
Note: Override this for alternative additive noise, e.g.
|
abstract float[] |
getNoiseSD(float[] state,
float[] directOutput) |
float[] |
getOutput(float startTime,
float[] state,
float[] directOutput) |
float[][] |
getR() |
void |
reset(boolean randomize) |
void |
setR(float[][] R) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
public AdditiveGaussianExpressModel(int dim)
dim
- Number of outputs of the DecodedOriginpublic void setR(float[][] R)
R
- Autocorrelation for each input. The first element of each array is the 1-step autocorrelation;
the kth is the k-step autocorrelationpublic float[][] getR()
public void reset(boolean randomize)
reset
in interface Resettable
randomize
- True indicates that the object should be reset to a
randomly selected initial state (the object must be aware of the
distribution from which to draw from). False indicates that the
object should be reset to a fixed initial state (which it must
also know). Some objects may not support randomization of the initial
state, in which case a fixed state will be used in either case.public float[] getOutput(float startTime, float[] state, float[] directOutput)
getOutput
in interface ExpressModel
startTime
- Start of simulation time step.state
- The value represented by the associated NEFEnsembledirectOutput
- DIRECT mode output values of an OriginExpressModel.getOutput(float, float[], float[])
public float[] getNoise(float[] state, float[] directOutput)
state
- The value represented by the associated NEFEnsembledirectOutput
- DIRECT mode output values of an Originpublic abstract float[] getNoiseSD(float[] state, float[] directOutput)
state
- The value represented by the associated NEFEnsembledirectOutput
- DIRECT mode output values of an Originpublic abstract float[] getDistortion(float[] state, float[] directOutput)
state
- The value represented by the associated NEFEnsembledirectOutput
- DIRECT mode output values of an Origin