public static class Curve.CurveBuilder extends Object implements CurveBuilderInterface
| Constructor and Description |
|---|
CurveBuilder()
Build a curve.
|
CurveBuilder(Curve curve)
Build a curve by cloning a given curve.
|
CurveBuilder(String name,
java.time.LocalDate referenceDate)
Build a curve with a given name and given reference date.
|
| Modifier and Type | Method and Description |
|---|---|
CurveBuilderInterface |
addPoint(double time,
double value,
boolean isParameter)
Add a point to the curve.
|
CurveInterface |
build()
Build the curve.
|
CurveBuilderInterface |
setExtrapolationMethod(Curve.ExtrapolationMethod extrapolationMethod)
Set the extrapolation method of the curve.
|
CurveBuilderInterface |
setInterpolationEntity(Curve.InterpolationEntity interpolationEntity)
Set the interpolationEntity of the curve.
|
CurveBuilderInterface |
setInterpolationMethod(Curve.InterpolationMethod interpolationMethod)
Set the interpolation method of the curve.
|
public CurveBuilder()
public CurveBuilder(String name, java.time.LocalDate referenceDate)
name - The name of this curve.referenceDate - The reference date for this curve, i.e., the date which defined t=0.public CurveBuilder(Curve curve) throws CloneNotSupportedException
curve - A curve to be used as starting point for the new curve.CloneNotSupportedException - Thrown, when the curve could not be cloned.public CurveInterface build() throws CloneNotSupportedException
CurveBuilderInterfacebuild in interface CurveBuilderInterfaceCloneNotSupportedException - Thrown if the curve could not be build (likely due to a template throwing CloneNotSupportedException.public CurveBuilderInterface setInterpolationMethod(Curve.InterpolationMethod interpolationMethod)
interpolationMethod - The interpolation method of the curve.public CurveBuilderInterface setExtrapolationMethod(Curve.ExtrapolationMethod extrapolationMethod)
extrapolationMethod - The extrapolation method of the curve.public CurveBuilderInterface setInterpolationEntity(Curve.InterpolationEntity interpolationEntity)
interpolationEntity - The interpolation entity of the curve.public CurveBuilderInterface addPoint(double time, double value, boolean isParameter)
CurveBuilderInterfaceaddPoint in interface CurveBuilderInterfacetime - The time of the corresponding point.value - The value of the corresponding point.isParameter - A boolean, specifying weather the point should be considered a free parameter (true) or not (false). Fee parameters can be used to create a clone with modified values, see Curve.getCloneForParameter(double[])Copyright © 2017. All rights reserved.