Record Class OrnsteinUhlenbeck.Params
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.OrnsteinUhlenbeck.Params
- Record Components:
kappa- mean-reversion speed, per unit ofdt's timetheta- long-run meansigma- diffusion volatility (same time units as κ)halfLife- ln2/κ, indttime units
- Enclosing class:
OrnsteinUhlenbeck
public static record OrnsteinUhlenbeck.Params(double kappa, double theta, double sigma, double halfLife)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParams(double kappa, double theta, double sigma, double halfLife) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublehalfLife()Returns the value of thehalfLiferecord component.final inthashCode()Returns a hash code value for this object.doublekappa()Returns the value of thekapparecord component.doublesigma()Returns the value of thesigmarecord component.doubleStationary standard deviation σ/√(2κ) — the z-score's yardstick.doubletheta()Returns the value of thethetarecord component.final StringtoString()Returns a string representation of this record class.doublezScore(double x) (x − θ) / stationary stdev: the entry/exit signal.
-
Constructor Details
-
Params
public Params(double kappa, double theta, double sigma, double halfLife) Creates an instance of aParamsrecord class.
-
-
Method Details
-
stationaryStdev
public double stationaryStdev()Stationary standard deviation σ/√(2κ) — the z-score's yardstick. -
zScore
public double zScore(double x) (x − θ) / stationary stdev: the entry/exit signal. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
kappa
-
theta
-
sigma
-
halfLife
-