Record Class OptionsBook.PnlExplain
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.OptionsBook.PnlExplain
- Enclosing class:
OptionsBook
public static record OptionsBook.PnlExplain(double actualPnl, double deltaPnl, double gammaPnl, double vegaPnl, double thetaPnl, double unexplained)
extends Record
First/second-order attribution of a Pinvalid input: '&L' move.
-
Constructor Summary
ConstructorsConstructorDescriptionPnlExplain(double actualPnl, double deltaPnl, double gammaPnl, double vegaPnl, double thetaPnl, double unexplained) Creates an instance of aPnlExplainrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theactualPnlrecord component.doubledeltaPnl()Returns the value of thedeltaPnlrecord component.final booleanIndicates whether some other object is "equal to" this one.doublegammaPnl()Returns the value of thegammaPnlrecord component.final inthashCode()Returns a hash code value for this object.doublethetaPnl()Returns the value of thethetaPnlrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theunexplainedrecord component.doublevegaPnl()Returns the value of thevegaPnlrecord component.
-
Constructor Details
-
PnlExplain
public PnlExplain(double actualPnl, double deltaPnl, double gammaPnl, double vegaPnl, double thetaPnl, double unexplained) Creates an instance of aPnlExplainrecord class.- Parameters:
actualPnl- the value for theactualPnlrecord componentdeltaPnl- the value for thedeltaPnlrecord componentgammaPnl- the value for thegammaPnlrecord componentvegaPnl- the value for thevegaPnlrecord componentthetaPnl- the value for thethetaPnlrecord componentunexplained- the value for theunexplainedrecord 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. -
actualPnl
public double actualPnl()Returns the value of theactualPnlrecord component.- Returns:
- the value of the
actualPnlrecord component
-
deltaPnl
public double deltaPnl()Returns the value of thedeltaPnlrecord component.- Returns:
- the value of the
deltaPnlrecord component
-
gammaPnl
public double gammaPnl()Returns the value of thegammaPnlrecord component.- Returns:
- the value of the
gammaPnlrecord component
-
vegaPnl
public double vegaPnl()Returns the value of thevegaPnlrecord component.- Returns:
- the value of the
vegaPnlrecord component
-
thetaPnl
public double thetaPnl()Returns the value of thethetaPnlrecord component.- Returns:
- the value of the
thetaPnlrecord component
-
unexplained
public double unexplained()Returns the value of theunexplainedrecord component.- Returns:
- the value of the
unexplainedrecord component
-