|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.timeseries.multivariate.realtime.SimpleMultiVariateTimeSeries
public class SimpleMultiVariateTimeSeries
A simple multivariate time series has its vectored values indexed by integers. Data are assumed to be equally spaced.
This time of series is often seen in classical multivariate time series analysis.
| Nested Class Summary | |
|---|---|
class |
SimpleMultiVariateTimeSeries.Iterator
the Iterator to read a SimpleMultiVariateTimeSeries |
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.stats.timeseries.multivariate.realtime.MultiVariateTimeSeries |
|---|
MultiVariateTimeSeries.Entry |
| Constructor Summary | |
|---|---|
SimpleMultiVariateTimeSeries(double[]... values)
Construct a SimpleMultiVariateTimeSeries. |
|
SimpleMultiVariateTimeSeries(Matrix values)
Construct a SimpleMultiVariateTimeSeries. |
|
SimpleMultiVariateTimeSeries(TimeSeries ts)
Construct a SimpleMultiVariateTimeSeries from a univariate time series. |
|
SimpleMultiVariateTimeSeries(Vector... values)
Construct a SimpleMultiVariateTimeSeries. |
|
| Method Summary | |
|---|---|
SimpleMultiVariateTimeSeries |
diff(int d)
Construct a new and independent SimpleMultiVariateTimeSeries by taking the first difference. |
int |
dimension()
Get the dimensionality of the multivariate time series. |
SimpleMultiVariateTimeSeries |
drop(int nItems)
Construct a new and independent SimpleMultiVariateTimeSeries by dropping the leading nItems entries. |
boolean |
equals(java.lang.Object obj)
|
Vector |
get(int t)
Get the value at time t. |
int |
hashCode()
|
SimpleMultiVariateTimeSeries.Iterator |
iterator()
Get an Iterator to read this integer-indexed multivariate time series. |
SimpleMultiVariateTimeSeries |
lag(int nLags)
Construct a new and independent SimpleMultiVariateTimeSeries by lagging the time series. |
SimpleMultiVariateTimeSeries |
lag(int nLags,
int length)
Construct a new and independent SimpleMultiVariateTimeSeries by lagging the time series. |
int |
size()
the length of the time series |
Matrix |
toMatrix()
Convert this multivariate time series into an m x n matrix, where m is the dimension, and n the length. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleMultiVariateTimeSeries(Matrix values)
values - a matrix representation of a time seriespublic SimpleMultiVariateTimeSeries(double[]... values)
values - a double array representation of a time seriespublic SimpleMultiVariateTimeSeries(Vector... values)
values - a vector representation of a time seriespublic SimpleMultiVariateTimeSeries(TimeSeries ts)
ts - a univariate time series| Method Detail |
|---|
public SimpleMultiVariateTimeSeries.Iterator iterator()
MultiVariateTimeSeries
iterator in interface MultiVariateTimeSeries<java.lang.Integer>iterator in interface TimeSeries<java.lang.Integer,Vector>public Matrix toMatrix()
MultiVariateTimeSeries
toMatrix in interface MultiVariateTimeSeries<java.lang.Integer>public int size()
TimeSeries
size in interface TimeSeries<java.lang.Integer,Vector>public int dimension()
MultiVariateTimeSeries
dimension in interface MultiVariateTimeSeries<java.lang.Integer>public Vector get(int t)
MultiVariateTimeSeriest.
t - the time index, ranging from 1 up to T
ts[t]public SimpleMultiVariateTimeSeries drop(int nItems)
nItems entries.
nItems - the number of leading entries to be dropped
public SimpleMultiVariateTimeSeries diff(int d)
d - the number of differences
public SimpleMultiVariateTimeSeries lag(int nLags,
int length)
This only makes sense for equi-distant data points.
nLags - the number of lagslength - the length of the lagged time series
public SimpleMultiVariateTimeSeries lag(int nLags)
This only makes sense for equi-distant data points.
nLags - the number of lags
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||