public class DiscountCurveFromProductOfCurves extends AbstractCurve implements Serializable, DiscountCurve
| Constructor and Description |
|---|
DiscountCurveFromProductOfCurves(String name,
LocalDate referenceDate,
DiscountCurve... curves)
Create a discount curve using one or more curves.
|
| Modifier and Type | Method and Description |
|---|---|
CurveBuilder |
getCloneBuilder()
Returns a curve builder bases on a clone of this curve.
|
double |
getDiscountFactor(AnalyticModel 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(AnalyticModel 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, DiscountCurve... 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)
DiscountCurvegetDiscountFactor in interface DiscountCurvematurity - The maturity for which the discount factor is requested.public double getDiscountFactor(AnalyticModel model, double maturity)
DiscountCurvegetDiscountFactor in interface DiscountCurvemodel - 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(AnalyticModel model, double time)
Curvepublic double[] getParameter()
ParameterObjectgetParameter in interface ParameterObjectpublic void setParameter(double[] parameter)
ParameterObjectsetParameter in interface ParameterObjectparameter - The parameter associated with the new state of the objects.public CurveBuilder getCloneBuilder()
CurvegetCloneBuilder in interface CurveCopyright © 2019. All rights reserved.