Class ARCH
java.lang.Object
org.ojalgo.random.scedasticity.AbstractScedasticity
org.ojalgo.random.scedasticity.ARCH
- All Implemented Interfaces:
ScedasticityModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate final double[]private final double[]Fields inherited from class AbstractScedasticity
DEFAULT_VARIANCE, ELEVEN_TWELFTHS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase(double base) errorWeights(double... lagged) static ARCHParameter estimation using heuristics (not max likelihood).doublegetMean()doublevoidinitialise(double mean, double variance) static ARCHnewInstance(int q) static ARCHnewInstance(int q, double mean, double variance) Will create an instance configured with default parameters.voidupdate(double value) Methods inherited from class AbstractScedasticity
average, decreasing, parametersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ScedasticityModel
getStandardDeviation, variances
-
Field Details
-
myBase
private double myBase -
myMean
private double myMean -
mySquaredErrors
private final double[] mySquaredErrors -
myWeights
private final double[] myWeights
-
-
Constructor Details
-
ARCH
public ARCH(int q)
-
-
Method Details
-
estimate
-
newInstance
- See Also:
-
newInstance
Will create an instance configured with default parameters. What these are may change in the future. You're better of estimating suitable paramaters for your use case and then setbase(double)anderrorWeights(double...). -
base
-
errorWeights
-
getMean
public double getMean() -
getVariance
public double getVariance() -
initialise
public void initialise(double mean, double variance) -
update
public void update(double value)
-