Class InterpolatedNodalCurve.Builder

    • Method Detail

      • metadata

        public InterpolatedNodalCurve.Builder metadata​(CurveMetadata metadata)
        Sets the curve metadata.

        The metadata includes an optional list of parameter metadata. If present, the size of the parameter metadata list will match the number of parameters of this curve.

        Parameters:
        metadata - the new value, not null
        Returns:
        this, for chaining, not null
      • xValues

        public InterpolatedNodalCurve.Builder xValues​(DoubleArray xValues)
        Sets the array of x-values, one for each point.

        This array will contains at least two elements and be of the same length as y-values.

        Parameters:
        xValues - the new value, not null
        Returns:
        this, for chaining, not null
      • yValues

        public InterpolatedNodalCurve.Builder yValues​(DoubleArray yValues)
        Sets the array of y-values, one for each point.

        This array will contains at least two elements and be of the same length as x-values.

        Parameters:
        yValues - the new value, not null
        Returns:
        this, for chaining, not null
      • interpolator

        public InterpolatedNodalCurve.Builder interpolator​(CurveInterpolator interpolator)
        Sets the interpolator. This is used for x-values between the smallest and largest known x-value.
        Parameters:
        interpolator - the new value, not null
        Returns:
        this, for chaining, not null
      • extrapolatorLeft

        public InterpolatedNodalCurve.Builder extrapolatorLeft​(CurveExtrapolator extrapolatorLeft)
        Sets the extrapolator for x-values on the left, defaulted to 'Flat". This is used for x-values smaller than the smallest known x-value.
        Parameters:
        extrapolatorLeft - the new value, not null
        Returns:
        this, for chaining, not null
      • extrapolatorRight

        public InterpolatedNodalCurve.Builder extrapolatorRight​(CurveExtrapolator extrapolatorRight)
        Sets the extrapolator for x-values on the right, defaulted to 'Flat". This is used for x-values larger than the largest known x-value.
        Parameters:
        extrapolatorRight - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>