net.finmath.marketdata.model.curves.DiscountCurve Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
/*
* (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
*
* Created on 30.11.2012
*/
package net.finmath.marketdata.model.curves;
import net.finmath.marketdata.model.AnalyticModel;
/**
* The interface which is implemented by discount curves. A discount curve is a mapping of T to df(T) where df(T)
* represents the present value of a cash flow or 1 in time T, with respect to a specific currency unit and collateralization.
*
* @author Christian Fries
* @version 1.0
*/
public interface DiscountCurve extends Curve {
/**
* Returns the discount factor for the corresponding maturity. This getter is not optimized for performance.
*
* @param maturity The maturity for which the discount factor is requested.
* @return The discount factor (i.e., price of the zero coupon bond with given maturity and notional 1.
*/
double getDiscountFactor(double maturity);
/**
* Returns the discount factor for the corresponding maturity. This getter is not optimized for performance.
*
* @param model An analytic model providing a context. Some curves do not need this (can be null).
* @param maturity The maturity for which the discount factor is requested.
*
* @return The discount factor (i.e., price of the zero coupon bond with given maturity and notional 1.
*/
double getDiscountFactor(AnalyticModel model, double maturity);
}