public class ContinouslyCompoundedBankAccountOracle extends Object implements StochasticValuationOracle
| Constructor and Description |
|---|
ContinouslyCompoundedBankAccountOracle()
A dummy oracle which generates values as initalValue * Math.exp(r T).
|
ContinouslyCompoundedBankAccountOracle(LocalDateTime initialTime)
A dummy oracle which generates values as initalValue * Math.exp(r T).
|
ContinouslyCompoundedBankAccountOracle(LocalDateTime initialTime,
double initialValue,
double timeHorizon,
double riskFreeRate)
A dummy oracle which generates values as initalValue * Math.exp(r T).
|
ContinouslyCompoundedBankAccountOracle(TimeDiscretization timeDiscretization,
LocalDateTime initialTime,
double initialValue,
double riskFreeRate) |
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(LocalDateTime evaluationTime,
LocalDateTime marketDataTime)
Provides that value of the Oracle at a given evaluation time.
|
public ContinouslyCompoundedBankAccountOracle()
public ContinouslyCompoundedBankAccountOracle(LocalDateTime initialTime)
initialTime - The date corresponding to the initial time of the oracle. Valuation prior this time is not provided.public ContinouslyCompoundedBankAccountOracle(LocalDateTime initialTime, double initialValue, double timeHorizon, double riskFreeRate)
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.public ContinouslyCompoundedBankAccountOracle(TimeDiscretization timeDiscretization, LocalDateTime initialTime, double initialValue, double riskFreeRate)
public RandomVariable getValue(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
StochasticValuationOraclegetValue in interface StochasticValuationOracleevaluationTime - The evaluation time.marketDataTime - The market data time.Copyright © 2019. All rights reserved.