public abstract class AbstractCurve extends Object implements CurveInterface, Cloneable
Constructor and Description |
---|
AbstractCurve(String name,
LocalDate referenceDate) |
Modifier and Type | Method and Description |
---|---|
AbstractCurve |
clone()
Create a deep copied clone.
|
CurveInterface |
getCloneForParameter(RandomVariableInterface[] 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.
|
RandomVariableInterface |
getValue(double time)
Returns the value for the time using the interpolation method associated with this curve.
|
RandomVariableInterface[] |
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 String getName()
CurveInterface
getName
in interface CurveInterface
public LocalDate getReferenceDate()
CurveInterface
getReferenceDate
in interface CurveInterface
public RandomVariableInterface getValue(double time)
CurveInterface
getValue
in interface CurveInterface
time
- Time for which the value should be returned.public RandomVariableInterface[] getValues(double[] times)
times
- A given vector of times.public AbstractCurve clone() throws CloneNotSupportedException
CurveInterface
clone
in interface CurveInterface
clone
in class Object
CloneNotSupportedException
- Thrown, when the curve could not be cloned.public CurveInterface getCloneForParameter(RandomVariableInterface[] value) throws CloneNotSupportedException
ParameterObjectInterface
getCloneForParameter
in interface ParameterObjectInterface
getCloneForParameter
in interface CurveInterface
value
- The new parameter.CloneNotSupportedException
- Thrown, when the curve could not be cloned.Copyright © 2018. All rights reserved.