public class ExponentialCorrelationCurve extends AbstractCurve implements Cloneable
| Constructor and Description |
|---|
ExponentialCorrelationCurve(String name,
LocalDate referenceDate,
double termination,
double correlationDecay)
Create the curve.
|
| 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, toStringpublic ExponentialCorrelationCurve(String name, LocalDate referenceDate, double termination, double correlationDecay)
name - The name of the curvereferenceDate - The reference date of the curvetermination - The date as double, from which the correlation is measuredcorrelationDecay - The rate at which the correlation decayspublic double getValue(AnalyticModel model, double time)
Curvepublic CurveBuilder getCloneBuilder()
CurvegetCloneBuilder in interface 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.Copyright © 2019. All rights reserved.