- java.lang.Object
-
- net.finmath.marketdata2.products.AbstractAnalyticProduct
-
- net.finmath.marketdata2.products.Deposit
-
- All Implemented Interfaces:
AnalyticProduct,Product
public class Deposit extends AbstractAnalyticProduct implements AnalyticProduct
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDiscountCurveName()doublegetFixingTime()doublegetPeriodEndTime()doublegetRate()RandomVariablegetRate(AnalyticModel model)Return the deposit rate implied by the given model's curve.SchedulegetSchedule()RandomVariablegetValue(double evaluationTime, AnalyticModel model)Return the valuation of the product using the given model.StringtoString()-
Methods inherited from class net.finmath.marketdata2.products.AbstractAnalyticProduct
getValue, getValue
-
-
-
-
Method Detail
-
getValue
public RandomVariable getValue(double evaluationTime, AnalyticModel model)
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
public RandomVariable getRate(AnalyticModel model)
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
public Schedule getSchedule()
-
getDiscountCurveName
public String getDiscountCurveName()
-
getRate
public double getRate()
-
getPeriodEndTime
public double getPeriodEndTime()
-
getFixingTime
public double getFixingTime()
-
-