public class DataTableExtrapolated extends DataTableInterpolated implements DataTable, Cloneable
DataTableBasic with the capacity to inter- and extrapolate values off the tenor grid.
Note that the interpolation is done to the accuracy of the table convention.DataTableBasic.DoubleKeyDataTable.TableConvention| Constructor and Description |
|---|
DataTableExtrapolated(String name,
DataTable.TableConvention convention,
LocalDate referenceDate,
SchedulePrototype scheduleMetaData)
Create an empty table.
|
DataTableExtrapolated(String name,
DataTable.TableConvention convention,
LocalDate referenceDate,
SchedulePrototype scheduleMetaData,
int[] maturities,
int[] terminations,
double[] values)
Create a table.
|
DataTableExtrapolated(String name,
DataTable.TableConvention convention,
LocalDate referenceDate,
SchedulePrototype scheduleMetaData,
List<Integer> maturities,
List<Integer> terminations,
List<Double> values)
Create a table.
|
| Modifier and Type | Method and Description |
|---|---|
DataTableExtrapolated |
clone() |
double |
getValue(double maturity,
double termination)
Returns the value of the table at a given time.
|
double |
getValue(int maturity,
int termination)
Returns the value of the table at a given time.
|
String |
toString() |
String |
toString(double unit) |
interpolateDataTableaddPoint, addPoints, containsEntryFor, containsEntryFor, getConvention, getMaturities, getMaturitiesForTermination, getName, getReferenceDate, getScheduleMetaData, getTerminations, getTerminationsForMaturity, getValue, size, upgradeDataTableLightequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPoint, addPoints, containsEntryFor, containsEntryFor, exportTable, getConvention, getMaturities, getMaturitiesForTermination, getName, getReferenceDate, getScheduleMetaData, getTerminations, getTerminationsForMaturity, sizepublic DataTableExtrapolated(String name, DataTable.TableConvention convention, LocalDate referenceDate, SchedulePrototype scheduleMetaData)
name - The name of the table.convention - The convention of the table.referenceDate - The referenceDate of the table.scheduleMetaData - The schedule meta data of the table.public DataTableExtrapolated(String name, DataTable.TableConvention convention, LocalDate referenceDate, SchedulePrototype scheduleMetaData, int[] maturities, int[] terminations, double[] values)
name - The name of the table.convention - The convention of the table.referenceDate - The referenceDate of the table.scheduleMetaData - The schedule meta data of the table.maturities - The maturities of the points as offset with respect to the reference date.terminations - The terminations of the points as offset with respect to the maturity date.values - The values at the points.public DataTableExtrapolated(String name, DataTable.TableConvention convention, LocalDate referenceDate, SchedulePrototype scheduleMetaData, List<Integer> maturities, List<Integer> terminations, List<Double> values)
name - The name of the table.convention - The convention of the table.referenceDate - The referenceDate of the table.scheduleMetaData - The schedule meta data of the table.maturities - The maturities of the points as offset with respect to the reference date.terminations - The terminations of the points as offset with respect to the maturity date.values - The values at the points.public double getValue(int maturity,
int termination)
DataTablegetValue in interface DataTablegetValue in class DataTableInterpolatedmaturity - The maturity as offset with respect to the reference date.termination - The termination as offset with respect to the maturity date.public double getValue(double maturity,
double termination)
DataTablegetValue in interface DataTablegetValue in class DataTableInterpolatedmaturity - Maturity in double as year fraction with respect to reference date.termination - Termination in double as year fraction with respect to reference date.public DataTableExtrapolated clone()
clone in interface DataTableclone in class DataTableInterpolatedpublic String toString()
toString in class DataTableInterpolatedpublic String toString(double unit)
toString in class DataTableInterpolatedCopyright © 2019. All rights reserved.