Class CurveInterpolation.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Build a curve.
      • Builder

        public Builder​(String name,
                       LocalDate referenceDate)
        Build a curve with a given name and given reference date.
        Parameters:
        name - The name of this curve.
        referenceDate - The reference date for this curve, i.e., the date which defined t=0.
    • Method Detail

      • setInterpolationMethod

        public CurveBuilder setInterpolationMethod​(CurveInterpolation.InterpolationMethod interpolationMethod)
        Set the interpolation method of the curve.
        Parameters:
        interpolationMethod - The interpolation method of the curve.
        Returns:
        A self reference to this curve build object.
      • setExtrapolationMethod

        public CurveBuilder setExtrapolationMethod​(CurveInterpolation.ExtrapolationMethod extrapolationMethod)
        Set the extrapolation method of the curve.
        Parameters:
        extrapolationMethod - The extrapolation method of the curve.
        Returns:
        A self reference to this curve build object.
      • setInterpolationEntity

        public CurveBuilder setInterpolationEntity​(CurveInterpolation.InterpolationEntity interpolationEntity)
        Set the interpolationEntity of the curve.
        Parameters:
        interpolationEntity - The interpolation entity of the curve.
        Returns:
        A self reference to this curve build object.
      • addPoint

        public CurveBuilder addPoint​(double time,
                                     double value,
                                     boolean isParameter)
        Description copied from interface: CurveBuilder
        Add a point to the curve.
        Specified by:
        addPoint in interface CurveBuilder
        Parameters:
        time - 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 CurveInterpolation.getCloneForParameter(double[])
        Returns:
        A self reference to this curve build object.