public class CurveFromProductOfCurves extends AbstractCurve implements Serializable, CurveInterface
| Constructor and Description |
|---|
CurveFromProductOfCurves(String name,
LocalDate referenceDate,
CurveInterface... curves)
Create a 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[] |
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 CurveFromProductOfCurves(String name, LocalDate referenceDate, CurveInterface... curves)
name - The name of this curve.referenceDate - The reference date of this curve.curves - Argument list or array of curves.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.