public class ValuationOracleSamplePath extends Object implements ValuationOracle
| Constructor and Description |
|---|
ValuationOracleSamplePath(StochasticValuationOracle stochasticValuationOracle,
int path)
Create a valuation oracle from a simulation providing a stochastic valuation oracle
by extracting a given sample path.
|
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmount |
getAmount(LocalDateTime evaluationTime,
LocalDateTime marketDataTime)
Provides the value of the Oracle at a given evaluation time.
|
Double |
getValue(LocalDateTime evaluationTime,
LocalDateTime marketDataTime)
Provides the value of the Oracle at a given evaluation time using market data from a given time.
|
public ValuationOracleSamplePath(StochasticValuationOracle stochasticValuationOracle, int path)
stochasticValuationOracle - A given stochastic oracle.path - The sample path to extract from the stochastic oracle.public Double getValue(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
ValuationOraclegetValue in interface ValuationOracleevaluationTime - The evaluation time.marketDataTime - The market data time.public MonetaryAmount getAmount(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
ValuationOraclegetAmount in interface ValuationOracleevaluationTime - The evaluation time.marketDataTime - The market data time.Copyright © 2019. All rights reserved.