Record Class FrtbSa.Bucket
java.lang.Object
java.lang.Record
com.quantfinlib.risk.FrtbSa.Bucket
- Enclosing class:
FrtbSa
One bucket: weighted sensitivities and the medium-scenario
intra-bucket correlation matrix (diagonal ignored).
-
Constructor Summary
ConstructorsConstructorDescriptionBucket(double[] weighted, double[][] rho) Creates an instance of aBucketrecord 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.static FrtbSa.Bucketof(double[] sens, double[] rw, double[][] rho) Bucket with risk weights applied: WS_k = rw[k]·s[k].double[][]rho()Returns the value of therhorecord component.final StringtoString()Returns a string representation of this record class.double[]weighted()Returns the value of theweightedrecord component.
-
Constructor Details
-
Bucket
public Bucket(double[] weighted, double[][] rho) Creates an instance of aBucketrecord class.- Parameters:
weighted- the value for theweightedrecord componentrho- the value for therhorecord component
-
-
Method Details
-
weighted
public double[] weighted()Returns the value of theweightedrecord component.- Returns:
- the value of the
weightedrecord component
-
rho
public double[][] rho()Returns the value of therhorecord component.- Returns:
- the value of the
rhorecord component
-
of
Bucket with risk weights applied: WS_k = rw[k]·s[k]. -
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).
-