Class ARMATimeSeries
- java.lang.Object
-
- org.apache.commons.math3.distribution.AbstractRealDistribution
-
- org.processmining.plugins.stochasticpetrinet.distribution.AnotherAbstractRealDistribution
-
- org.processmining.plugins.stochasticpetrinet.distribution.timeseries.StatefulTimeseriesDistribution
-
- org.processmining.plugins.stochasticpetrinet.distribution.timeseries.ARMATimeSeries
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.commons.math3.analysis.UnivariateFunction,org.apache.commons.math3.distribution.RealDistribution
public class ARMATimeSeries extends StatefulTimeseriesDistribution
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]arWeightsprotected java.util.LinkedList<java.lang.Double>errorsprotected longlastTimeprotected double[]maWeightsprotected java.util.LinkedList<java.lang.Double>values-
Fields inherited from class org.processmining.plugins.stochasticpetrinet.distribution.timeseries.StatefulTimeseriesDistribution
noiseDistribution, onlyPositive
-
Fields inherited from class org.processmining.plugins.stochasticpetrinet.distribution.AnotherAbstractRealDistribution
cachedMean, cachedVariance
-
-
Constructor Summary
Constructors Constructor Description ARMATimeSeries(double noiseStandardDeviation)ARMATimeSeries(int n, int m, double noise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(double value, double error)double[]getArWeights()protected doublegetCurrentSeriesValue(long currentTime)Sub-classes need to implement this.double[]getMaWeights()double[]getParameters()voidsetArWeights(double[] arWeights)voidsetCurrentTime(long currentTime)voidsetLastTime(long lastTime)voidsetMaWeights(double[] maWeights)-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.distribution.timeseries.StatefulTimeseriesDistribution
cumulativeProbability, density, getSupportLowerBound, getSupportUpperBound, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, sample, sample
-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.distribution.AnotherAbstractRealDistribution
getNumericalMean, getNumericalVariance, value
-
-
-
-
Method Detail
-
getCurrentSeriesValue
protected double getCurrentSeriesValue(long currentTime)
Description copied from class:StatefulTimeseriesDistributionSub-classes need to implement this. It returns the value of the time series model given the current time- Specified by:
getCurrentSeriesValuein classStatefulTimeseriesDistribution- Parameters:
currentTime- the current time as a POSIX timestamp (millis since 01-01-1970)- Returns:
- double the value of the underlying series at the given point in time.
-
getArWeights
public double[] getArWeights()
-
setArWeights
public void setArWeights(double[] arWeights)
-
getMaWeights
public double[] getMaWeights()
-
setMaWeights
public void setMaWeights(double[] maWeights)
-
addValue
public void addValue(double value, double error)
-
setLastTime
public void setLastTime(long lastTime)
-
setCurrentTime
public void setCurrentTime(long currentTime)
- Overrides:
setCurrentTimein classStatefulTimeseriesDistribution
-
getParameters
public double[] getParameters()
-
-