Class OUFittingOLS
- java.lang.Object
-
- dev.nm.stat.stochasticprocess.univariate.sde.process.ou.OUFittingOLS
-
-
Constructor Summary
Constructors Constructor Description OUFittingOLS()
Create an instance that estimates the volatility parameter σ.OUFittingOLS(boolean estimateVolatility)
Create an instance with the option whether to estimate the volatility parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OUProcess
getFittedOU(double[] ts)
Fit an OU process by using least squares regression.OUProcess
getFittedOU(double[] ts, double dt)
Get the fitted OU process.
-
-
-
Constructor Detail
-
OUFittingOLS
public OUFittingOLS(boolean estimateVolatility)
Create an instance with the option whether to estimate the volatility parameter. If the volatility parameter is NOT estimated, the fitted process will assume σ=1.- Parameters:
estimateVolatility
-true
if volatility parameter is to be estimated
-
OUFittingOLS
public OUFittingOLS()
Create an instance that estimates the volatility parameter σ.
-
-
Method Detail
-
getFittedOU
public OUProcess getFittedOU(double[] ts)
Fit an OU process by using least squares regression. By default, the time interval is assumed to be 1.- Parameters:
ts
- the time series- Returns:
- the fitted OU process
-
getFittedOU
public OUProcess getFittedOU(double[] ts, double dt)
Description copied from interface:OUFitting
Get the fitted OU process.- Specified by:
getFittedOU
in interfaceOUFitting
- Parameters:
ts
- the time seriesdt
- the time interval between two successive points in the time series- Returns:
- the fitted OU process
-
-