net.finmath.time
Interface TenorInterface
-
- All Known Implementing Classes:
- Tenor
public interface TenorInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.util.CalendargetDate(int timeIndex)Returns the date for the given time index.doublegetDaycountFraction(int timeIndex)Returns the day count fraction for the period form timeIndex to to timeIndex+1.java.util.CalendargetReferenceDate()
-
-
-
Method Detail
-
getReferenceDate
java.util.Calendar getReferenceDate()
- Returns:
- The reference date of this tenor, i.e., the date mapped to 0.0
-
getDate
java.util.Calendar getDate(int timeIndex)
Returns the date for the given time index.- Parameters:
timeIndex- Time index- Returns:
- Returns the date for a given time index.
-
getDaycountFraction
double getDaycountFraction(int timeIndex)
Returns the day count fraction for the period form timeIndex to to timeIndex+1.- Parameters:
timeIndex- Time index- Returns:
- Returns the day count fraction.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG