Record Class LocalVolMonteCarlo.Result
java.lang.Object
java.lang.Record
com.quantfinlib.pricing.LocalVolMonteCarlo.Result
- Enclosing class:
LocalVolMonteCarlo
Price and its Monte Carlo standard error.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double price, double standardError) 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.doubleprice()Returns the value of thepricerecord component.doubleReturns the value of thestandardErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(double price, double standardError) Creates an instance of aResultrecord class.- Parameters:
price- the value for thepricerecord componentstandardError- the value for thestandardErrorrecord 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. -
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
standardError
public double standardError()Returns the value of thestandardErrorrecord component.- Returns:
- the value of the
standardErrorrecord component
-