public class BlackScholesModel extends Object implements CharacteristicFunctionModel
| Constructor and Description |
|---|
BlackScholesModel(double initialValue,
double riskFreeRate,
double volatility)
Create a Black Scholes model (characteristic function)
|
BlackScholesModel(double initialValue,
double riskFreeRate,
double discountRate,
double volatility)
Create a Black Scholes model (characteristic function)
|
BlackScholesModel(LocalDate referenceDate,
double initialValue,
DiscountCurve discountCurveForForwardRate,
DiscountCurve discountCurveForDiscountRate,
double volatility)
Create a Black Scholes model (characteristic function)
|
| Modifier and Type | Method and Description |
|---|---|
CharacteristicFunction |
apply(double time)
Returns the characteristic function of X(t), where X is
this stochastic process. |
DiscountCurve |
getDiscountCurveForDiscountRate() |
DiscountCurve |
getDiscountCurveForForwardRate() |
double |
getDiscountRate() |
double |
getInitialValue() |
LocalDate |
getReferenceDate() |
double |
getRiskFreeRate() |
double |
getVolatility() |
String |
toString() |
public BlackScholesModel(LocalDate referenceDate, double initialValue, DiscountCurve discountCurveForForwardRate, DiscountCurve discountCurveForDiscountRate, double volatility)
referenceDate - The date representing the time t = 0. All other double times are following FloatingpointDate.initialValue - \( S_{0} \) - spot - initial value of SdiscountCurveForForwardRate - The curve specifying \( t \mapsto exp(- r^{\text{c}}(t) \cdot t) \) - with \( r^{\text{c}}(t) \) the risk free ratediscountCurveForDiscountRate - The curve specifying \( t \mapsto exp(- r^{\text{d}}(t) \cdot t) \) - with \( r^{\text{d}}(t) \) the discount ratevolatility - \( \sigma \) the volatility levelpublic BlackScholesModel(double initialValue,
double riskFreeRate,
double discountRate,
double volatility)
initialValue - \( S_{0} \) - spot - initial value of SriskFreeRate - \( r^{\text{c}} \) - the risk free ratediscountRate - \( r^{\text{d}} \) - the discount ratevolatility - \( \sigma \) the volatility levelpublic BlackScholesModel(double initialValue,
double riskFreeRate,
double volatility)
initialValue - \( S_{0} \) - spot - initial value of SriskFreeRate - \( r^{\text{c}} \) - the risk free ratevolatility - \( \sigma \) the volatility levelpublic CharacteristicFunction apply(double time)
CharacteristicFunctionModelthis stochastic process.apply in interface CharacteristicFunctionModeltime - The time at which the stochastic process is observed.public LocalDate getReferenceDate()
public double getInitialValue()
public DiscountCurve getDiscountCurveForForwardRate()
public double getRiskFreeRate()
public DiscountCurve getDiscountCurveForDiscountRate()
public double getDiscountRate()
public double getVolatility()
Copyright © 2019. All rights reserved.