public abstract class AbstractCurve extends Object implements CurveInterface, Cloneable
| Constructor and Description |
|---|
AbstractCurve(String name,
Calendar referenceDate) |
| Modifier and Type | Method and Description |
|---|---|
AbstractCurve |
clone()
Create a deep copied clone.
|
CurveInterface |
getCloneForParameter(double[] value)
Create a clone with a modified parameter.
|
String |
getName()
Get the name of the curve.
|
Calendar |
getReferenceDate()
Return the reference date of this curve, i.e. the date
associated with t=0.
|
double |
getValue(double time)
Returns the value for the time using the interpolation method associated with this curve.
|
double[] |
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 String getName()
CurveInterfacegetName in interface CurveInterfacepublic Calendar getReferenceDate()
CurveInterfacegetReferenceDate in interface CurveInterfacepublic double getValue(double time)
CurveInterfacegetValue in interface CurveInterfacetime - Time for which the value should be returned.public double[] getValues(double[] times)
times - A given vector of times.public AbstractCurve clone() throws CloneNotSupportedException
CurveInterfaceclone in interface CurveInterfaceclone in class ObjectCloneNotSupportedException - Thrown, when the curve could not be cloned.public CurveInterface getCloneForParameter(double[] value) throws CloneNotSupportedException
ParameterObjectInterfacegetCloneForParameter in interface ParameterObjectInterfacegetCloneForParameter in interface CurveInterfacevalue - The new parameter.CloneNotSupportedException - Thrown, when the curve could not be cloned.Copyright © 2015. All rights reserved.