net.finmath.marketdata.products
Class Performance
- java.lang.Object
-
- net.finmath.marketdata.products.AbstractAnalyticProduct
-
- net.finmath.marketdata.products.Performance
-
- All Implemented Interfaces:
- AnalyticProductInterface, ProductInterface
public class Performance extends AbstractAnalyticProduct implements AnalyticProductInterface
Implements an analytic product given by the ratio of two analytic products. This class may become handy when constructing calibrations products. For example: The swap rate is the performance of aSwapLegrelative to aSwapAnnuity. Note: In the strict sense, the performance is an index an not a product (e.g. it does not have a currency unit). With respect to the implementation we do not make a difference here and implement the AbstractAnalyticProduct interface.
-
-
Constructor Summary
Constructors Constructor and Description Performance(AbstractAnalyticProduct productNumerator, AbstractAnalyticProduct productDenominator)Creates a Performance product.
-
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.java.lang.StringtoString()-
Methods inherited from class net.finmath.marketdata.products.AbstractAnalyticProduct
getValue, getValue
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.finmath.modelling.ProductInterface
getValue
-
-
-
-
Constructor Detail
-
Performance
public Performance(AbstractAnalyticProduct productNumerator, AbstractAnalyticProduct productDenominator)
Creates a Performance product.- Parameters:
productNumerator- A product implementing AbstractAnalyticProduct for the numerator.productDenominator- A product implementing AbstractAnalyticProduct for the denominator.
-
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG