Record Class CovarianceShrinkage.Result
java.lang.Object
java.lang.Record
com.quantfinlib.risk.CovarianceShrinkage.Result
- Record Components:
matrix- the shrunk covariance Sigma*intensity- delta in [0, 1] — how far toward the targettarget- mu, the average sample variance (the target's diagonal)
- Enclosing class:
CovarianceShrinkage
public static record CovarianceShrinkage.Result(double[][] matrix, double intensity, double target)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double[][] matrix, double intensity, double target) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theintensityrecord component.double[][]matrix()Returns the value of thematrixrecord component.doubletarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
matrix
-
intensity
-
target
-