public class AccruedInterest extends AbstractIndex
| Constructor and Description |
|---|
AccruedInterest(String name,
String currency,
LocalDate referenceDate,
LocalDate periodStartDate,
LocalDate periodEndDate,
AbstractIndex index,
Double indexFixingTime,
DayCountConvention daycountConvention,
boolean isNegativeAccruedInterest)
Create an accrued interest index.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(double fixingTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
getNamegetExecutor, getValuesgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic AccruedInterest(String name, String currency, LocalDate referenceDate, LocalDate periodStartDate, LocalDate periodEndDate, AbstractIndex index, Double indexFixingTime, DayCountConvention daycountConvention, boolean isNegativeAccruedInterest)
name - The name of the index.currency - The payment currency.referenceDate - The model reference date (corresponding to t=0).periodStartDate - The period start date.periodEndDate - The period end date.index - The index.indexFixingTime - The fixing time \( t_{0} \) of the index.daycountConvention - The day count convention.isNegativeAccruedInterest - If true, the class represents the coupon payment minus the accrued interest, i.e., \( I(t_{0}) \cdot \frac{\max(\text{dcf}(T_{start},t),0)}{\text{dcf}(T_{start},T_{end})} \).public RandomVariable getValue(double fixingTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
TermStructureMonteCarloProductgetValue in interface TermStructureMonteCarloProductgetValue in class AbstractIndexfixingTime - 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.public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentCopyright © 2019. All rights reserved.