public abstract class AbstractCurve extends Object implements Curve, Cloneable
| Constructor and Description |
|---|
AbstractCurve(String name,
LocalDate referenceDate) |
| Modifier and Type | Method and Description |
|---|---|
AbstractCurve |
clone()
Create a deep copied clone.
|
Curve |
getCloneForParameter(RandomVariable[] value)
Create a clone with a modified parameter.
|
String |
getName()
Get the name of the curve.
|
LocalDate |
getReferenceDate()
Return the reference date of this curve, i.e. the date
associated with t=0.
|
RandomVariable |
getValue(double time)
Returns the value for the time using the interpolation method associated with this curve.
|
RandomVariable[] |
getValues(double[] times)
Return a vector of values corresponding to a given vector of times.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCloneBuilder, getValuegetParameter, setParameterpublic LocalDate getReferenceDate()
CurvegetReferenceDate in interface Curvepublic RandomVariable getValue(double time)
Curvepublic RandomVariable[] getValues(double[] times)
times - A given vector of times.public AbstractCurve clone() throws CloneNotSupportedException
Curveclone in interface Curveclone in class ObjectCloneNotSupportedException - Thrown, when the curve could not be cloned.public Curve getCloneForParameter(RandomVariable[] value) throws CloneNotSupportedException
ParameterObjectgetCloneForParameter in interface ParameterObjectgetCloneForParameter in interface Curvevalue - The new parameter.CloneNotSupportedException - Thrown, when the curve could not be cloned.Copyright © 2019. All rights reserved.