Class CovarianceShrinkage.Result
java.lang.Object
com.quantfinlib.risk.CovarianceShrinkage.Result
- Enclosing class:
CovarianceShrinkage
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double[][] matrix, double intensity, double target) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()doubleintensity(delta in [0, 1] — how far toward the target).doublematrix(int i, int j) Element[i][j]ofmatrix(the shrunk covariance Sigma*).double[][]A deep copy ofmatrix.intNumber of rows ofmatrix.doubletarget()target(identity target: mu, the average sample variance (the target's diagonal); constant-correlation target: the average sample correlation r̄).toString()
-
Constructor Details
-
Result
public Result(double[][] matrix, double intensity, double target) Creates the value; array and collection arguments are copied.- Parameters:
matrix- the shrunk covariance Sigma*intensity- delta in [0, 1] — how far toward the targettarget- identity target: mu, the average sample variance (the target's diagonal); constant-correlation target: the average sample correlation r̄
-
-
Method Details
-
matrix
public double matrix(int i, int j) Element[i][j]ofmatrix(the shrunk covariance Sigma*). -
matrixRows
public int matrixRows()Number of rows ofmatrix. -
matrixCopy
public double[][] matrixCopy()A deep copy ofmatrix. -
intensity
public double intensity()intensity(delta in [0, 1] — how far toward the target). -
target
public double target()target(identity target: mu, the average sample variance (the target's diagonal); constant-correlation target: the average sample correlation r̄). -
equals
-
hashCode
-
toString
-