net.finmath.marketdata.products
Class Forward
- java.lang.Object
-
- net.finmath.marketdata.products.AbstractAnalyticProduct
-
- net.finmath.marketdata.products.Forward
-
- All Implemented Interfaces:
- AnalyticProductInterface, ProductInterface
public class Forward extends AbstractAnalyticProduct implements AnalyticProductInterface
Implements the valuation of a forward using curves (discount curve, forward curve). The forward value is simply the product of a discount factor and a forward. This is similar to a FRA (a forward rate), except that there is no scaling with a period length. The class can be used to define equity forwards. Here the discount curve can be interpreted as a repo curve.
-
-
Constructor Summary
Constructors Constructor and Description Forward(double maturity, double paymentOffset, java.lang.String forwardCurveName, double spread, java.lang.String discountCurveName)Creates a forward.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetValue(double evaluationTime, AnalyticModelInterface model)Return the valuation of the product using the given model.-
Methods inherited from class net.finmath.marketdata.products.AbstractAnalyticProduct
getValue, getValue
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.finmath.modelling.ProductInterface
getValue
-
-
-
-
Constructor Detail
-
Forward
public Forward(double maturity, double paymentOffset, java.lang.String forwardCurveName, double spread, java.lang.String discountCurveName)Creates a forward. The forward has a unit notional of 1.- Parameters:
maturity- Maturity, i.e., fixing on the forward curve.paymentOffset- Payment offset, i.e. payment is maturity + paymentOffset.forwardCurveName- Name of the forward curve, leave empty if this is a fix payment.spread- Additional fixed payment (if any).discountCurveName- Name of the discount curve for the forward.
-
-
Method Detail
-
getValue
public double getValue(double evaluationTime, AnalyticModelInterface model)Description copied from interface:AnalyticProductInterfaceReturn the valuation of the product using the given model. The model has to implement the modes ofAnalyticModelInterface.- Specified by:
getValuein interfaceAnalyticProductInterface- 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG