public static class NoiseFactory.NoiseImplPDF extends java.lang.Object implements Noise
Noise.Noisy
DIMENSION_PROPERTY
Constructor and Description |
---|
NoiseFactory.NoiseImplPDF(float frequency,
PDF pdf,
DynamicalSystem dynamics,
Integrator integrator) |
Modifier and Type | Method and Description |
---|---|
Noise |
clone() |
DynamicalSystem |
getDynamics() |
float |
getFrequency() |
Integrator |
getIntegrator() |
PDF |
getPDF() |
float |
getValue(float startTime,
float endTime,
float input) |
void |
reset(boolean randomize) |
void |
setFrequency(float frequency) |
public NoiseFactory.NoiseImplPDF(float frequency, PDF pdf, DynamicalSystem dynamics, Integrator integrator)
frequency
- Frequency (in simulation time) with which new noise values are drawn from the PDFpdf
- PDF from which new noise values are drawn. The dimension of the space over which the PDF is defined
must equal the input dimension of the dynamics.dynamics
- Dynamics through which raw noise values pass before they are combined with non-noise.
The input dimension must match the PDF and the output dimension must equal one. Can be null in which
case the PDF must be one-dimensional.integrator
- Integrator used to solve dynamics. Can be null if dynamics is null.public float getFrequency()
public void setFrequency(float frequency)
frequency
- Frequency (in simulation time) with which new noise values are drawn from the PDFpublic PDF getPDF()
public DynamicalSystem getDynamics()
public Integrator getIntegrator()
public float getValue(float startTime, float endTime, float input)
getValue
in interface Noise
startTime
- Simulation time at which step startsendTime
- Simulation time at which step endsinput
- Value which is to be corrupted by noiseNoise.getValue(float, float, float)
public Noise clone()
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.Resettable.reset(boolean)