All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.marketdata.model.curves.DiscountCurveInterface Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
/*
 * (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
 *
 * Created on 30.11.2012
 */
package net.finmath.marketdata.model.curves;

import net.finmath.marketdata.model.AnalyticModelInterface;

/**
 * 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
 */
public interface DiscountCurveInterface extends CurveInterface {

	/**
	 * 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(AnalyticModelInterface model, double maturity);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy