java.lang.Object
org.ojalgo.random.scedasticity.GARCH
- All Implemented Interfaces:
ScedasticityModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase(double base) errorWeights(double... lagged) static GARCHParameter estimation using heuristics (not max likelihood).doublegetMean()doublevoidinitialise(double mean, double variance) static GARCHnewInstance(int p, int q) static GARCHnewInstance(int p, int q, double mean, double variance) Will create an instance configured with default parameters.voidupdate(double value) varianceWeights(double... lagged) Methods 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
-
Constructor Details
-
GARCH
public GARCH(int p, int q)
-
-
Method Details
-
estimate
Parameter estimation using heuristics (not max likelihood).- Parameters:
series- Series to adapt top- Number of lagged variance valuesq- Number of lagged squared error terms- Returns:
- Ready to use GARCH 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),errorWeights(double...)andvarianceWeights(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) -
varianceWeights
-