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 org.ojalgo.random.scedasticity.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 org.ojalgo.random.scedasticity.AbstractScedasticity
average, decreasing, parametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ojalgo.random.scedasticity.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
Parameter estimation using heuristics (not max likelihood).- Parameters:
series- Series to adapt toq- Number of lagged squared error terms- Returns:
- Ready to use ARCH model
-
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)
-