Record Class TailRisk.Tail
java.lang.Object
java.lang.Record
com.quantfinlib.risk.TailRisk.Tail
- Enclosing class:
TailRisk
VaR and ES of one sample, both in loss units.
-
Constructor Summary
ConstructorsConstructorDescriptionTail(double var, double expectedShortfall) Creates an instance of aTailrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexpectedShortfallrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublevar()Returns the value of thevarrecord component.
-
Constructor Details
-
Tail
public Tail(double var, double expectedShortfall) Creates an instance of aTailrecord class.- Parameters:
var- the value for thevarrecord componentexpectedShortfall- the value for theexpectedShortfallrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
var
public double var()Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord component
-
expectedShortfall
public double expectedShortfall()Returns the value of theexpectedShortfallrecord component.- Returns:
- the value of the
expectedShortfallrecord component
-