public class Tenor extends TimeDiscretization implements TenorInterface
TimeDiscretization.ShortPeriodLocation| Constructor and Description |
|---|
Tenor(Calendar[] dates,
Calendar referenceDate) |
Tenor(double[] timeDiscretization)
Construct a tenor from a time discretization.
|
Tenor(Double[] timeDiscretization)
Construct a tenor from a time discretization.
|
Tenor(double initial,
double last,
double deltaT,
TimeDiscretization.ShortPeriodLocation shortPeriodLocation)
Construct a tenor from meta data.
|
Tenor(double initial,
int numberOfTimeSteps,
double deltaT)
Construct a tenor from meta data.
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getDate(int timeIndex)
Returns the date for the given time index.
|
double |
getDaycountFraction(int timeIndex)
Returns the day count fraction for the period form timeIndex to to timeIndex+1.
|
Calendar |
getReferenceDate() |
equals, getAsArrayList, getAsDoubleArray, getNumberOfTimes, getNumberOfTimeSteps, getTime, getTimeIndex, getTimeIndexNearestGreaterOrEqual, getTimeIndexNearestLessOrEqual, getTimeShiftedTimeDiscretization, getTimeStep, hashCode, iterator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Tenor(Calendar[] dates, Calendar referenceDate)
dates - A set of dates.referenceDate - The reference date, which defines t=0 with respect to the internal double representation.public Tenor(double[] timeDiscretization)
timeDiscretization - A time discretization.public Tenor(Double[] timeDiscretization)
timeDiscretization - A time discretization.public Tenor(double initial,
int numberOfTimeSteps,
double deltaT)
initial - First discretization point.numberOfTimeSteps - Number of time steps.deltaT - Time step size.public Tenor(double initial,
double last,
double deltaT,
TimeDiscretization.ShortPeriodLocation shortPeriodLocation)
initial - First discretization point.last - Last time steps.deltaT - Time step size.shortPeriodLocation - Placement of the stub period.public Calendar getReferenceDate()
getReferenceDate in interface TenorInterfacepublic Calendar getDate(int timeIndex)
TenorInterfacegetDate in interface TenorInterfacetimeIndex - Time indexpublic double getDaycountFraction(int timeIndex)
TenorInterfacegetDaycountFraction in interface TenorInterfacetimeIndex - Time indexCopyright © 2015. All rights reserved.