Record Class FrtbSa.RiskClass
java.lang.Object
java.lang.Record
com.quantfinlib.risk.FrtbSa.RiskClass
- Enclosing class:
FrtbSa
public static record FrtbSa.RiskClass(List<FrtbSa.Bucket> delta, double[][] deltaGamma, List<FrtbSa.Bucket> vega, double[][] vegaGamma, List<FrtbSa.Bucket> curvature, double[][] curvatureGamma)
extends Record
One risk class: delta, vega and curvature inputs (any may be empty).
-
Constructor Summary
ConstructorsConstructorDescriptionRiskClass(List<FrtbSa.Bucket> delta, double[][] deltaGamma, List<FrtbSa.Bucket> vega, double[][] vegaGamma, List<FrtbSa.Bucket> curvature, double[][] curvatureGamma) Creates an instance of aRiskClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurvaturerecord component.double[][]Returns the value of thecurvatureGammarecord component.delta()Returns the value of thedeltarecord component.double[][]Returns the value of thedeltaGammarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.vega()Returns the value of thevegarecord component.double[][]Returns the value of thevegaGammarecord component.
-
Constructor Details
-
RiskClass
public RiskClass(List<FrtbSa.Bucket> delta, double[][] deltaGamma, List<FrtbSa.Bucket> vega, double[][] vegaGamma, List<FrtbSa.Bucket> curvature, double[][] curvatureGamma) Creates an instance of aRiskClassrecord class.- Parameters:
delta- the value for thedeltarecord componentdeltaGamma- the value for thedeltaGammarecord componentvega- the value for thevegarecord componentvegaGamma- the value for thevegaGammarecord componentcurvature- the value for thecurvaturerecord componentcurvatureGamma- the value for thecurvatureGammarecord component
-
-
Method Details
-
deltaGamma
public double[][] deltaGamma()Returns the value of thedeltaGammarecord component.- Returns:
- the value of the
deltaGammarecord component
-
vegaGamma
public double[][] vegaGamma()Returns the value of thevegaGammarecord component.- Returns:
- the value of the
vegaGammarecord component
-
curvatureGamma
public double[][] curvatureGamma()Returns the value of thecurvatureGammarecord component.- Returns:
- the value of the
curvatureGammarecord component
-
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 withObjects::equals(Object,Object). -
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
vega
Returns the value of thevegarecord component.- Returns:
- the value of the
vegarecord component
-
curvature
Returns the value of thecurvaturerecord component.- Returns:
- the value of the
curvaturerecord component
-