Class ForwardSensitivities.ProjectedHedgeRatioResult
java.lang.Object
net.finmath.montecarlo.automaticdifferentiation.forwardsensitivities.ForwardSensitivities.ProjectedHedgeRatioResult
- Enclosing class:
ForwardSensitivities
Result container for a reduced stochastic hedge-ratio calculation.
hedgeRatios[j] is the reconstructed stochastic hedge ratio phi_j^r(t, omega).
coefficients[j][q] is xi_j^q with respect to the solution basis X_q.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionProjectedHedgeRatioResult(RandomVariable[] hedgeRatios, double[][] coefficients, double[][] reducedMatrix, double[] reducedRhs, List<String> riskFactorNames) Backwards-compatible constructor.ProjectedHedgeRatioResult(RandomVariable[] hedgeRatios, double[][] coefficients, double[][] reducedMatrix, double[] reducedRhs, List<String> riskFactorNames, ForwardSensitivities.ReductionMethod reductionMethod) -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]double[][]Method-dependent reduced system matrix.double[]Method-dependent reduced right-hand side.
-
Constructor Details
-
ProjectedHedgeRatioResult
public ProjectedHedgeRatioResult(RandomVariable[] hedgeRatios, double[][] coefficients, double[][] reducedMatrix, double[] reducedRhs, List<String> riskFactorNames) Backwards-compatible constructor. The method is assumed to be PROJECTED_GALERKIN. -
ProjectedHedgeRatioResult
public ProjectedHedgeRatioResult(RandomVariable[] hedgeRatios, double[][] coefficients, double[][] reducedMatrix, double[] reducedRhs, List<String> riskFactorNames, ForwardSensitivities.ReductionMethod reductionMethod)
-
-
Method Details
-
getHedgeRatios
-
getCoefficients
public double[][] getCoefficients() -
getReducedMatrix
public double[][] getReducedMatrix()Method-dependent reduced system matrix.- PROJECTED_GALERKIN: B with rows (i,s) for test basis Y_s and columns (j,q) for solution basis X_q.
- L2: normal matrix G = D^T D / N with columns (j,q).
-
getReducedRhs
public double[] getReducedRhs()Method-dependent reduced right-hand side.- PROJECTED_GALERKIN: beta with rows (i,s) for test basis Y_s.
- L2: h = D^T b / N with columns (j,q).
-
getRiskFactorNames
-
getReductionMethod
-