:
where
is the current step, each
is the state of the system at step
(time
), and
and
are the sample mean and covariance of
, respectively.
The autocovariance is given by the autocorrelation without the normalisation term.
Call step() to advance the system by a number of steps, adding each new point to the autocorrelation calculation. The return value of step() indicates whether the calculation has converged. Note that this convergence check compares the autocorrelations before and after the call to step(), so that multiple calls are necessary for the return value to be meaningful.
Definition at line 47 of file AutoCorrelator.hpp.
Public Member Functions | |
| AutoCorrelator (NumericalSolver *solver, const double delta) | |
| Constructor. | |
| virtual | ~AutoCorrelator () |
| Destructor. | |
| void | setErrorBounds (double maxAbsoluteError=1e-3) |
| Set the error bounds for the convergence criterion. | |
| const indii::ml::aux::matrix & | getAutoCorrelation () |
| Get the autocorrelation as calculated up to the current time. | |
| const indii::ml::aux::matrix & | getAutoCovariance () |
| Get the autocovariance as calculated up to the current time. | |
| bool | step (const unsigned int steps) |
| Step. | |
| AutoCorrelator | ( | NumericalSolver * | solver, | |
| const double | delta | |||
| ) |
Constructor.
| solver | Numerical solver. | |
| delta | ; time step. |
Definition at line 7 of file AutoCorrelator.cpp.
| ~AutoCorrelator | ( | ) | [virtual] |
| void setErrorBounds | ( | double | maxAbsoluteError = 1e-3 |
) |
Set the error bounds for the convergence criterion.
| maxAbsoluteError | The maximum permitted absolute error. |
Definition at line 42 of file AutoCorrelator.cpp.
| const aux::matrix & getAutoCorrelation | ( | ) |
Get the autocorrelation as calculated up to the current time.
Definition at line 34 of file AutoCorrelator.cpp.
| const aux::matrix & getAutoCovariance | ( | ) |
Get the autocovariance as calculated up to the current time.
Definition at line 38 of file AutoCorrelator.cpp.
| bool step | ( | const unsigned int | steps | ) |
Step.
| steps | ; number of steps to take. |
and adds the new point to the autocorrelation calculation.Convergence is checked in the sense:
where
is the maximum permitted absolute error, and
the maximum permitted relative error.
Definition at line 46 of file AutoCorrelator.cpp.
1.5.3