public class MoneyMarketAccount extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
MoneyMarketAccount()
Create a default money market account.
|
MoneyMarketAccount(double inceptionTime,
double accrualPeriod)
Create a money market account.
|
MoneyMarketAccount(double inceptionTime,
double initialValue,
double accrualPeriod)
Create a money market account.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic MoneyMarketAccount(double inceptionTime,
double initialValue,
double accrualPeriod)
inceptionTime - The inception time. The value of the account at inception is 1.0. The value of the account prior to inception is zero.initialValue - The initial value, i.e., the value at inception time.accrualPeriod - The accrual period. If this period is < 0, then the finest model LIBOR period discretization is usedpublic MoneyMarketAccount(double inceptionTime,
double accrualPeriod)
inceptionTime - The inception time. The value of the account at inception is 1.0. The value of the account prior to inception is zero.accrualPeriod - The accrual period. If this period is < 0, then the finest model LIBOR period discretization is usedpublic MoneyMarketAccount()
public RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
AbstractLIBORMonteCarloProductgetValue in class AbstractLIBORMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Copyright © 2017. All rights reserved.