java.lang.Object
net.finmath.marketdata2.products.AbstractAnalyticProduct
net.finmath.marketdata2.products.Deposit
- All Implemented Interfaces:
AnalyticProduct,Product
Implements the valuation of the (overnight) deposit (maturity t+1 or t+2). May be used in curve calibration.
For definition and convention see Ametrano/Bianchetti (2013). Following the notation there,...
- for deposit ON set spot offset = 0, start = 0D, maturity = 1D
- for deposit TN set spot offset = 1, start = 0D, maturity = 1D
- for deposit ST set spot offset = 2, start = 0D, maturity as given.
- Version:
- 1.0
- Author:
- Rebecca Declara, Christian Fries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoublegetRate()getRate(AnalyticModel model)Return the deposit rate implied by the given model's curve.getValue(double evaluationTime, AnalyticModel model)Return the valuation of the product using the given model.toString()Methods inherited from class net.finmath.marketdata2.products.AbstractAnalyticProduct
getValue, getValue
-
Constructor Details
-
Deposit
- Parameters:
schedule- The schedule of the deposit consisting of one period, providing start, payment and periodLength.rate- The deposit rate.discountCurveName- The discount curve name.
-
-
Method Details
-
getValue
Description copied from interface:AnalyticProductReturn the valuation of the product using the given model. The model has to implement the modes ofAnalyticModel.- Specified by:
getValuein interfaceAnalyticProduct- Parameters:
evaluationTime- The evaluation time as double. Cash flows prior and including this time are not considered.model- The model under which the product is valued.- Returns:
- The value of the product using the given model.
-
getRate
Return the deposit rate implied by the given model's curve.- Parameters:
model- The given model containing the curve of namediscountCurveName.- Returns:
- The value of the deposit rate implied by the given model's curve.
-
getSchedule
-
getDiscountCurveName
-
getRate
public double getRate() -
getPeriodEndTime
public double getPeriodEndTime() -
getFixingTime
public double getFixingTime() -
toString
-