Home | Trees | Indices | Help |
|
---|
|
This class stores an empirical covariance matrix that can be updated incrementally. A call to the 'fix' method returns the current state of the covariance matrix, the average and the number of observations, and resets the internal data.
As compared to the CovarianceMatrix class, this class accepts sampled input in conjunction with a non-constant time increment between samples. The covariance matrix is then computed as a (centered) scalar product between functions, that is sampled unevenly, using the trapezoid rule.
The mean is computed using the trapezoid rule as well.
Note that the internal sum is a standard __add__ operation.
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|||
Inherited from CovarianceMatrix | |||
---|---|---|---|
|
|
|||
Inherited from |
|
|
Returns a triple containing the generalized covariance matrix, the average and length of the sequence (in time/summed increments). The covariance matrix is then reset to a zero-state. of sequence (in time/summed increments). :rtype: Tuple[np.ndarray, np.ndarray, np.ndarray]
|
Update internal structures. Note that no consistency checks are performed on the data (this is typically done in the enclosing node).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1-MDP on Mon Apr 27 21:56:25 2020 | http://epydoc.sourceforge.net |