public class IndexCurveFromDiscountCurve extends AbstractCurve implements Curve
| Constructor and Description |
|---|
IndexCurveFromDiscountCurve(String name,
double indexValue,
DiscountCurve discountCurve) |
| Modifier and Type | Method and Description |
|---|---|
CurveBuilder |
getCloneBuilder()
Returns a curve builder bases on a clone of this curve.
|
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 IndexCurveFromDiscountCurve(String name, double indexValue, DiscountCurve discountCurve)
name - The name of this curve.indexValue - The index value at the discount curve's t=0, i.e., the reference date of the discount curve.discountCurve - The discont curve.public 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 double getValue(AnalyticModel model, double time)
Curvepublic CurveBuilder getCloneBuilder() throws CloneNotSupportedException
CurvegetCloneBuilder in interface CurveCloneNotSupportedException - Thrown, when this curve could not be cloned.Copyright © 2019. All rights reserved.