public final class Ts extends Object
TimeSeries objects.| Modifier and Type | Method and Description |
|---|---|
static TimeSeries |
newAnnualSeries(double... series)
Construct a new time series with observations made annually, without regard to the observation dates.
|
static TimeSeries |
newAnnualSeries(int startYear,
double... series)
Construct a new time series with observations made annually starting at the given year.
|
static TimeSeries |
newMonthlySeries(double... series)
Construct a new time series of monthly observations without regard to the observation dates.
|
static TimeSeries |
newMonthlySeries(int startYear,
int startMonth,
double... series)
Construct a new time series with monthly observations starting at the given year and month.
|
static TimeSeries |
newMonthlySeries(int startYear,
int startMonth,
int startDay,
double... series)
Construct a new time series with monthly observations starting at the given year, month, and day.
|
static TimeSeries |
newQuarterlySeries(double... series)
Construct a new time series with quarterly observations without regard to the observation dates.
|
static TimeSeries |
newQuarterlySeries(int startYear,
int startQuarter,
double... series)
Construct a new time series with quarterly observations starting at the given year and quarter.
|
static TimeSeries |
newWeeklySeries(double... series) |
static TimeSeries |
newWeeklySeries(int startYear,
int startMonth,
int startDay,
double... series)
Construct a new time series with weekly observations starting at the given year, month, and day.
|
public static TimeSeries newAnnualSeries(int startYear, double... series)
startYear - the year of the first observation.series - the sequence of observations constituting this time series.public static TimeSeries newAnnualSeries(double... series)
series - the sequence of observations constituting this time series.public static TimeSeries newMonthlySeries(double... series)
series - the sequence of observations constituting this time series.public static TimeSeries newMonthlySeries(int startYear, int startMonth, double... series)
startYear - the year of the first observation.startMonth - the month of the first observation - an integer between
1 and 12 corresponding to the months January through December.series - the sequence of observations constituting this time series.public static TimeSeries newMonthlySeries(int startYear, int startMonth, int startDay, double... series)
startYear - The year of the first observation.startMonth - The month of the first observation - an integer between
1 and 12 corresponding to the months January through December.startDay - The day of the first observation - an integer between 1 and 31.series - The sequence of observations constituting this time series.public static TimeSeries newQuarterlySeries(double... series)
series - The sequence of observations constituting this time series.public static TimeSeries newQuarterlySeries(int startYear, int startQuarter, double... series)
startYear - The year of the first observation.startQuarter - The quarter of the first observation - an integer between
1 and 4 corresponding to the four quarters of a year.series - The sequence of observations constituting this time series.public static TimeSeries newWeeklySeries(double... series)
public static TimeSeries newWeeklySeries(int startYear, int startMonth, int startDay, double... series)
startYear - The year of the first observation.startMonth - The month of the first observation - an integer between
1 and 12 corresponding to the months January through December.startDay - The day of the first observation - an integer between 1 and 31.series - The sequence of observations constituting this time series.