public class GeometricBrownianMotionOracle extends Object implements StochasticValuationOracle
| Constructor and Description |
|---|
GeometricBrownianMotionOracle()
A dummy oracle which generates values using a geometric Brownian motion.
|
GeometricBrownianMotionOracle(LocalDateTime initialTime)
A dummy oracle which generates values using a geometric Brownian motion.
|
GeometricBrownianMotionOracle(LocalDateTime initialTime,
double initialValue,
double timeHorizon,
double riskFreeRate,
double volatility,
int numberOfPaths)
A dummy oracle which generates values using a geometric Brownian motion.
|
GeometricBrownianMotionOracle(TimeDiscretization timeDiscretization,
LocalDateTime initialTime,
double initialValue,
double riskFreeRate,
double volatility,
int numberOfPaths) |
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(LocalDateTime evaluationTime,
LocalDateTime marketDataTime)
Provides that value of the Oracle at a given evaluation time.
|
public GeometricBrownianMotionOracle()
public GeometricBrownianMotionOracle(LocalDateTime initialTime)
initialTime - The date corresponding to the initial time of the oracle. Valuation prior this time is not provided.public GeometricBrownianMotionOracle(LocalDateTime initialTime, double initialValue, double timeHorizon, double riskFreeRate, double volatility, int numberOfPaths)
initialTime - The date corresponding to the initial time of the oracle. Valuation prior this time is not provided.initialValue - The initial value.timeHorizon - The time horizon in ACT/365 from initialTime.riskFreeRate - The drift.volatility - The volatility.numberOfPaths - The number of simulation path to generate.public GeometricBrownianMotionOracle(TimeDiscretization timeDiscretization, LocalDateTime initialTime, double initialValue, double riskFreeRate, double volatility, int numberOfPaths)
public RandomVariable getValue(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
StochasticValuationOraclegetValue in interface StochasticValuationOracleevaluationTime - The evaluation time.marketDataTime - The market data time.Copyright © 2019. All rights reserved.