Record Class PnlAttribution.Result
java.lang.Object
java.lang.Record
com.quantfinlib.risk.PnlAttribution.Result
- Enclosing class:
PnlAttribution
public static record PnlAttribution.Result(double spearmanCorrelation, double ksStatistic, PnlAttribution.Zone zone)
extends Record
The PLAT verdict for one desk over one window.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double spearmanCorrelation, double ksStatistic, PnlAttribution.Zone zone) 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 theksStatisticrecord component.doubleReturns the value of thespearmanCorrelationrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
spearmanCorrelation- the value for thespearmanCorrelationrecord componentksStatistic- the value for theksStatisticrecord componentzone- the value for thezonerecord component
-
-
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. -
spearmanCorrelation
public double spearmanCorrelation()Returns the value of thespearmanCorrelationrecord component.- Returns:
- the value of the
spearmanCorrelationrecord component
-
ksStatistic
public double ksStatistic()Returns the value of theksStatisticrecord component.- Returns:
- the value of the
ksStatisticrecord component
-
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-