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, wait
getCloneBuilder, getValue
getParameter, setParameter
public LocalDate getReferenceDate()
Curve
getReferenceDate
in interface Curve
public RandomVariable getValue(double time)
Curve
public RandomVariable[] getValues(double[] times)
times
- A given vector of times.public AbstractCurve clone() throws CloneNotSupportedException
Curve
clone
in interface Curve
clone
in class Object
CloneNotSupportedException
- Thrown, when the curve could not be cloned.public Curve getCloneForParameter(RandomVariable[] value) throws CloneNotSupportedException
ParameterObject
getCloneForParameter
in interface ParameterObject
getCloneForParameter
in interface Curve
value
- The new parameter.CloneNotSupportedException
- Thrown, when the curve could not be cloned.Copyright © 2019. All rights reserved.