Record Class CointegrationTest.EngleGrangerResult
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.CointegrationTest.EngleGrangerResult
- Enclosing class:
CointegrationTest
public static record CointegrationTest.EngleGrangerResult(double hedgeRatio, double intercept, double adfTStatistic, boolean cointegrated1pct, boolean cointegrated5pct, boolean cointegrated10pct)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEngleGrangerResult(double hedgeRatio, double intercept, double adfTStatistic, boolean cointegrated1pct, boolean cointegrated5pct, boolean cointegrated10pct) Creates an instance of aEngleGrangerResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theadfTStatisticrecord component.booleanReturns the value of thecointegrated10pctrecord component.booleanReturns the value of thecointegrated1pctrecord component.booleanReturns the value of thecointegrated5pctrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehedgeRatiorecord component.doubleReturns the value of theinterceptrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EngleGrangerResult
public EngleGrangerResult(double hedgeRatio, double intercept, double adfTStatistic, boolean cointegrated1pct, boolean cointegrated5pct, boolean cointegrated10pct) Creates an instance of aEngleGrangerResultrecord class.- Parameters:
hedgeRatio- the value for thehedgeRatiorecord componentintercept- the value for theinterceptrecord componentadfTStatistic- the value for theadfTStatisticrecord componentcointegrated1pct- the value for thecointegrated1pctrecord componentcointegrated5pct- the value for thecointegrated5pctrecord componentcointegrated10pct- the value for thecointegrated10pctrecord component
-
-
Method Details
-
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. -
hedgeRatio
public double hedgeRatio()Returns the value of thehedgeRatiorecord component.- Returns:
- the value of the
hedgeRatiorecord component
-
intercept
public double intercept()Returns the value of theinterceptrecord component.- Returns:
- the value of the
interceptrecord component
-
adfTStatistic
public double adfTStatistic()Returns the value of theadfTStatisticrecord component.- Returns:
- the value of the
adfTStatisticrecord component
-
cointegrated1pct
public boolean cointegrated1pct()Returns the value of thecointegrated1pctrecord component.- Returns:
- the value of the
cointegrated1pctrecord component
-
cointegrated5pct
public boolean cointegrated5pct()Returns the value of thecointegrated5pctrecord component.- Returns:
- the value of the
cointegrated5pctrecord component
-
cointegrated10pct
public boolean cointegrated10pct()Returns the value of thecointegrated10pctrecord component.- Returns:
- the value of the
cointegrated10pctrecord component
-