Documentation of 'net.finmath.time.Tenor' Java class
Tenor
net.finmath.time

Class Tenor

    • Constructor Detail

      • Tenor

        public Tenor(java.util.Calendar[] dates,
                     java.util.Calendar referenceDate)
        Parameters:
        dates - A set of dates.
        referenceDate - The reference date, which defines t=0 with respect to the internal double representation.
      • Tenor

        public Tenor(double[] timeDiscretization)
        Construct a tenor from a time discretization.
        Parameters:
        timeDiscretization - A time discretization.
      • Tenor

        public Tenor(java.lang.Double[] timeDiscretization)
        Construct a tenor from a time discretization.
        Parameters:
        timeDiscretization - A time discretization.
      • Tenor

        public Tenor(double initial,
                     int numberOfTimeSteps,
                     double deltaT)
        Construct a tenor from meta data.
        Parameters:
        initial - First discretization point.
        numberOfTimeSteps - Number of time steps.
        deltaT - Time step size.
      • Tenor

        public Tenor(double initial,
                     double last,
                     double deltaT,
                     TimeDiscretization.ShortPeriodLocation shortPeriodLocation)
        Construct a tenor from meta data.
        Parameters:
        initial - First discretization point.
        last - Last time steps.
        deltaT - Time step size.
        shortPeriodLocation - Placement of the stub period.
    • Method Detail

      • getReferenceDate

        public java.util.Calendar getReferenceDate()
        Specified by:
        getReferenceDate in interface TenorInterface
        Returns:
        The reference date of this tenor, i.e., the date mapped to 0.0
      • getDate

        public java.util.Calendar getDate(int timeIndex)
        Description copied from interface: TenorInterface
        Returns the date for the given time index.
        Specified by:
        getDate in interface TenorInterface
        Parameters:
        timeIndex - Time index
        Returns:
        Returns the date for a given time index.
      • getDaycountFraction

        public double getDaycountFraction(int timeIndex)
        Description copied from interface: TenorInterface
        Returns the day count fraction for the period form timeIndex to to timeIndex+1.
        Specified by:
        getDaycountFraction in interface TenorInterface
        Parameters:
        timeIndex - Time index
        Returns:
        Returns the day count fraction.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.