Class ValuationOracleSamplePath
java.lang.Object
net.finmath.smartcontract.valuation.oracle.ValuationOracleSamplePath
- All Implemented Interfaces:
ValuationOracle
A valuation oracle constructed from a simulation providing a stochastic valuation oracle
by extracting a given sample path.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorDescriptionValuationOracleSamplePath
(StochasticValuationOracle stochasticValuationOracle, int path) Create a valuation oracle from a simulation providing a stochastic valuation oracle by extracting a given sample path. -
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
getAmount
(LocalDateTime evaluationTime, LocalDateTime marketDataTime) Provides the value of the Oracle at a given evaluation time.getValue
(LocalDateTime evaluationTime, LocalDateTime marketDataTime) Provides the value of the Oracle at a given evaluation time using market data from a given time.getValues
(LocalDateTime evaluationTime, LocalDateTime marketDataTime)
-
Constructor Details
-
ValuationOracleSamplePath
Create a valuation oracle from a simulation providing a stochastic valuation oracle by extracting a given sample path.- Parameters:
stochasticValuationOracle
- A given stochastic oracle.path
- The sample path to extract from the stochastic oracle.
-
-
Method Details
-
getValue
Description copied from interface:ValuationOracle
Provides the value of the Oracle at a given evaluation time using market data from a given time.Note: The use of two different dates allows to model the accrual/discounting at a (market data given) accrual rate.
- Specified by:
getValue
in interfaceValuationOracle
- Parameters:
evaluationTime
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The value.
-
getValues
- Specified by:
getValues
in interfaceValuationOracle
-
getAmount
public javax.money.MonetaryAmount getAmount(LocalDateTime evaluationTime, LocalDateTime marketDataTime) Description copied from interface:ValuationOracle
Provides the value of the Oracle at a given evaluation time.Note: The use of two different dates allows to model the accrual/discounting at a (market data given) accrual rate.
- Specified by:
getAmount
in interfaceValuationOracle
- Parameters:
evaluationTime
- The evaluation time.marketDataTime
- The market data time.- Returns:
- The amount.
-