Record Class VarEngine.VarResult
java.lang.Object
java.lang.Record
com.quantfinlib.risk.VarEngine.VarResult
- Enclosing class:
VarEngine
VaR and ES from Gaussian Monte Carlo factor scenarios.
-
Constructor Summary
ConstructorsConstructorDescriptionVarResult(double var, double expectedShortfall) Creates an instance of aVarResultrecord 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
-
VarResult
public VarResult(double var, double expectedShortfall) Creates an instance of aVarResultrecord 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
-