public abstract class StatefulTimeseriesDistribution extends AnotherAbstractRealDistribution
SinusoidalSeries
)
BEWARE: the class creating samples needs to update the current state to the sampling timestamp!
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.math3.distribution.RealDistribution |
noiseDistribution |
protected boolean |
onlyPositive |
cachedMean, cachedVariance
Constructor and Description |
---|
StatefulTimeseriesDistribution(double noiseStandardDeviation) |
StatefulTimeseriesDistribution(org.apache.commons.math3.distribution.RealDistribution noiseDist) |
Modifier and Type | Method and Description |
---|---|
double |
cumulativeProbability(double x) |
double |
density(double x) |
protected abstract double |
getCurrentSeriesValue(long currentTime)
Sub-classes need to implement this.
|
double |
getSupportLowerBound() |
double |
getSupportUpperBound() |
boolean |
isSupportConnected() |
boolean |
isSupportLowerBoundInclusive() |
boolean |
isSupportUpperBoundInclusive() |
double |
sample() |
double |
sample(long time) |
void |
setCurrentTime(long currentTime) |
getNumericalMean, getNumericalVariance, value
protected org.apache.commons.math3.distribution.RealDistribution noiseDistribution
protected boolean onlyPositive
public StatefulTimeseriesDistribution(double noiseStandardDeviation)
public StatefulTimeseriesDistribution(org.apache.commons.math3.distribution.RealDistribution noiseDist)
public double density(double x)
protected abstract double getCurrentSeriesValue(long currentTime)
currentTime
- the current time as a POSIX timestamp (millis since 01-01-1970)public double getSupportLowerBound()
public double getSupportUpperBound()
public boolean isSupportLowerBoundInclusive()
public boolean isSupportUpperBoundInclusive()
public boolean isSupportConnected()
public void setCurrentTime(long currentTime)
public double sample()
sample
in interface org.apache.commons.math3.distribution.RealDistribution
sample
in class org.apache.commons.math3.distribution.AbstractRealDistribution
public double sample(long time)
public double cumulativeProbability(double x)
cumulativeProbability
in interface org.apache.commons.math3.distribution.RealDistribution
cumulativeProbability
in class AnotherAbstractRealDistribution