Class AbstractCurve

    • Constructor Detail

      • AbstractCurve

        public AbstractCurve​(String name,
                             LocalDate referenceDate)
        Parameters:
        name - The name of this curve.
        referenceDate - The reference date of this curve.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Curve
        Get the name of the curve.
        Specified by:
        getName in interface Curve
        Returns:
        The name of this curve
      • getReferenceDate

        public LocalDate getReferenceDate()
        Description copied from interface: Curve
        Return the reference date of this curve, i.e. the date associated with t=0. May be null in case the curve is not associated with a fixed date (e.g. a time homogenous model).
        Specified by:
        getReferenceDate in interface Curve
        Returns:
        The date identified as t=0.
      • getValue

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

        public RandomVariable[] getValues​(double[] times)
        Return a vector of values corresponding to a given vector of times.
        Parameters:
        times - A given vector of times.
        Returns:
        A vector of values corresponding to the given vector of times.