public class FDMEuropeanCallOption extends Object implements FiniteDifference1DProduct, FiniteDifference1DBoundary
| Constructor and Description |
|---|
FDMEuropeanCallOption(double optionMaturity,
double optionStrike) |
| Modifier and Type | Method and Description |
|---|---|
double[][] |
getValue(double evaluationTime,
FiniteDifference1DModel model)
Return the value of the product under the given model.
|
double |
getValueAtLowerBoundary(FiniteDifference1DModel model,
double currentTime,
double stockPrice)
Return the value of the value process at the lower boundary for a given time and asset value.
|
double |
getValueAtUpperBoundary(FiniteDifference1DModel model,
double currentTime,
double stockPrice)
Return the value of the value process at the upper boundary for a given time and asset value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic FDMEuropeanCallOption(double optionMaturity,
double optionStrike)
public double[][] getValue(double evaluationTime,
FiniteDifference1DModel model)
FiniteDifference1DProductgetValue in interface FiniteDifference1DProductevaluationTime - The time at which the value (valuation) is requested.model - The model under which the valuation should be performed.public double getValueAtLowerBoundary(FiniteDifference1DModel model, double currentTime, double stockPrice)
FiniteDifference1DBoundarygetValueAtLowerBoundary in interface FiniteDifference1DBoundarymodel - The model which uses the boundary condition (provides model parameters)currentTime - The time at which the boundary is observed.stockPrice - The value of the asset specifying the location of the boundary.public double getValueAtUpperBoundary(FiniteDifference1DModel model, double currentTime, double stockPrice)
FiniteDifference1DBoundarygetValueAtUpperBoundary in interface FiniteDifference1DBoundarymodel - TODOcurrentTime - The time at which the boundary is observed.stockPrice - The value of the asset specifying the location of the boundary.Copyright © 2019. All rights reserved.