public class DiscountCurveFromProductOfCurves extends AbstractCurve implements Serializable, DiscountCurveInterface
| Constructor and Description |
|---|
DiscountCurveFromProductOfCurves(String name,
LocalDate referenceDate,
DiscountCurveInterface... curves)
Create a discount curve using one or more curves.
|
| Modifier and Type | Method and Description |
|---|---|
CurveBuilderInterface |
getCloneBuilder()
Returns a curve builder bases on a clone of this curve.
|
double |
getDiscountFactor(AnalyticModelInterface model,
double maturity)
Returns the discount factor for the corresponding maturity.
|
double |
getDiscountFactor(double maturity)
Returns the discount factor for the corresponding maturity.
|
double[] |
getParameter()
Get the current parameter associated with the state of the objects.
|
double |
getValue(AnalyticModelInterface model,
double time)
Returns the value for the time using the interpolation method associated with this curve
within a given context, i.e., a model.
|
void |
setParameter(double[] parameter)
Set the current parameter and change the state of the objects.
|
clone, getCloneForParameter, getName, getReferenceDate, getValue, getValues, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCloneForParameter, getName, getReferenceDate, getValuepublic DiscountCurveFromProductOfCurves(String name, LocalDate referenceDate, DiscountCurveInterface... curves)
name - The name of this curve.referenceDate - The reference date of this curve.curves - Argument list or array of curves.public double getDiscountFactor(double maturity)
DiscountCurveInterfacegetDiscountFactor in interface DiscountCurveInterfacematurity - The maturity for which the discount factor is requested.public double getDiscountFactor(AnalyticModelInterface model, double maturity)
DiscountCurveInterfacegetDiscountFactor in interface DiscountCurveInterfacemodel - An analytic model providing a context. Some curves do not need this (can be null).maturity - The maturity for which the discount factor is requested.public double getValue(AnalyticModelInterface model, double time)
CurveInterfacegetValue in interface CurveInterfacemodel - An analytic model providing a context.time - Time for which the value should be returned.public double[] getParameter()
ParameterObjectInterfacegetParameter in interface ParameterObjectInterfacepublic void setParameter(double[] parameter)
ParameterObjectInterfacesetParameter in interface ParameterObjectInterfaceparameter - The parameter associated with the new state of the objects.public CurveBuilderInterface getCloneBuilder() throws CloneNotSupportedException
CurveInterfacegetCloneBuilder in interface CurveInterfaceCloneNotSupportedException - Thrown, when this curve could not be cloned.Copyright © 2017. All rights reserved.