Documentation of 'net.finmath.marketdata.model.curves.PiecewiseCurve' Java class
PiecewiseCurve
net.finmath.marketdata.model.curves

Class PiecewiseCurve

    • Constructor Detail

      • PiecewiseCurve

        public PiecewiseCurve(CurveInterface curveInterface,
                              CurveInterface fixedPartCurve,
                              double fixedPartStartTime,
                              double fixedPartEndTime)
    • Method Detail

      • setParameter

        public void setParameter(double[] parameter)
        Description copied from interface: ParameterObjectInterface
        Set the current parameter and change the state of the objects.
        Specified by:
        setParameter in interface ParameterObjectInterface
        Parameters:
        parameter - The parameter associated with the new state of the objects.
      • getBaseCurve

        public CurveInterface getBaseCurve()
        Returns:
        the baseCurve
      • getFixedPartCurve

        public CurveInterface getFixedPartCurve()
        Returns:
        the fixedPartCurve
      • getFixedPartStartTime

        public double getFixedPartStartTime()
        Returns:
        the fixedPartStartTime
      • getFixedPartEndTime

        public double getFixedPartEndTime()
        Returns:
        the fixedPartEndTime
      • getValue

        public double getValue(double time)
        Description copied from interface: CurveInterface
        Returns the value for the time using the interpolation method associated with this curve.
        Specified by:
        getValue in interface CurveInterface
        Overrides:
        getValue in class AbstractCurve
        Parameters:
        time - Time for which the value should be returned.
        Returns:
        The value at the give time.
      • getValue

        public double getValue(AnalyticModelInterface model,
                               double time)
        Description copied from interface: CurveInterface
        Returns the value for the time using the interpolation method associated with this curve within a given context, i.e., a model. The model (context) is needed only if the curve relies on another curve. Examples are a forward curve which relies on a discount curve or a discount curve which is defined via a spread over another curve.
        Specified by:
        getValue in interface CurveInterface
        Parameters:
        model - An analytic model providing a context.
        time - Time for which the value should be returned.
        Returns:
        The value at the give time.
      • clone

        public PiecewiseCurve clone()
                             throws java.lang.CloneNotSupportedException
        Description copied from interface: CurveInterface
        Create a deep copied clone.
        Specified by:
        clone in interface CurveInterface
        Overrides:
        clone in class AbstractCurve
        Returns:
        A clone (deep copied).
        Throws:
        java.lang.CloneNotSupportedException - Thrown, when the curve could not be cloned.
      • getCloneBuilder

        public CurveBuilderInterface getCloneBuilder()
                                              throws java.lang.CloneNotSupportedException
        Description copied from interface: CurveInterface
        Returns a curve builder bases on a clone of this curve. Using that curve builder you may create a new curve from this curve by adding points or changing properties. Note: The clone has the same name than this one.
        Specified by:
        getCloneBuilder in interface CurveInterface
        Returns:
        An object implementing the CurveBuilderInterface where the underlying curve is a clone of this curve.
        Throws:
        java.lang.CloneNotSupportedException - Thrown, when this curve could not be cloned.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.