Template class for performing pointwise ADF for a fts. More...
#include <ADF_test.hpp>
Public Member Functions | |
| template<typename STOR_OBJ> | |
| adf (STOR_OBJ &&x, int k) | |
| Constructor taking the matrix containing the fts and the lag order. | |
| std::vector< double > | p_values () const |
| Getter for the poitwise ADF test p-values. | |
| std::vector< double > | one_step_diff (const KO_Traits::StoringVector &ts) const |
| Computing the one time step difference for the time series. | |
| KO_Traits::StoringMatrix | embed (const KO_Traits::StoringVector &ts, int dimension) const |
| Embeds the time series into a low-dimensional Euclidean space. | |
| double | statistic_eval (const KO_Traits::StoringVector &ts) const |
| Evaluating the ADF-test statistic for a time series. | |
| double | p_value_eval (const KO_Traits::StoringVector &ts, const std::vector< double > &tableipl, int i) const |
| Evaluating thr ADF-test p-value for a time series. | |
| void | test () |
| computing the ADF-test pointwisely for each point of the domain for the fts | |
Template class for performing pointwise ADF for a fts.
| LAG_policy | indicates if lag orders bigger than one has to be taken into account while computing the test statistic |
The ADF is performed for all the rows of the matrix storing the fts as: every row indicates a domain point for which an evaluation of the functional object is available, every column a time instant.
|
inline |
Constructor taking the matrix containing the fts and the lag order.
| x | matrix containing the fts |
| k | lag order |
Universal constructor: move semantic used to optimazing handling big size objects
| KO_Traits::StoringMatrix adf< LAG_policy >::embed | ( | const KO_Traits::StoringVector & | ts, |
| int | dimension ) const |
Embeds the time series into a low-dimensional Euclidean space.
| ts | time series |
| dimension | dimension of the Euclidean space in which embedding the time series |
Each row of the resulting matrix consists of sequences x[t], x[t-1], …, x[t-dimension+1], where t is the original index of x.
| std::vector< double > adf< LAG_policy >::one_step_diff | ( | const KO_Traits::StoringVector & | ts | ) | const |
Computing the one time step difference for the time series.
| ts | the time series |
| double adf< LAG_policy >::p_value_eval | ( | const KO_Traits::StoringVector & | ts, |
| const std::vector< double > & | tableipl, | ||
| int | i ) const |
Evaluating thr ADF-test p-value for a time series.
| ts | time series |
| tableipl | table containing extreme values for the statistic for p-value computation |
| i | number of the discrete evaluation corresponding to 'ts' |
|
inline |
Getter for the poitwise ADF test p-values.
| double adf< LAG_policy >::statistic_eval | ( | const KO_Traits::StoringVector & | ts | ) | const |
Evaluating the ADF-test statistic for a time series.
| ts | time series |