name: Covariance : public AlgorithmBase

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_algo.a

#include <Covariance.h>

Covariance(ALGORITHM algorithm = DEF_ALGORITHM, IMPLEMENTATION implementation = DEF_IMPLEMENTATION, NORMALIZATION normalization = DEF_NORMALIZATION, long order = DEF_ORDER);
boolean eq(const Covariance& arg) const;
boolean compute(MatrixFloat& output, const VectorFloat& input);
quick start:

VectorFloat input(L"1.0, 2.0, 3.0, 4.0, 5.0");
MatrixFloat output;
Covariance cov(4);
cov.compute(output, input);
description:

The Covariance class is used to compute a covariance matrix from signal and feature vectors. This class is similar in design and function to the
Correlation class. A good overview of covariance methods can be found in: The mathematical descriptions of these algorithms are provided below for reference purposes:


Two implementations are supported: factored and unfactored. The unfactored implementation is described in: The factored approach is a computationally efficient algorithm described in: The factored and unfactored approaches produce the same result.

This class supports two computational modes. In FRAME_INTERNAL mode, a covariance matrix is computed on a single vector of data, contained within the current analysis frame. One matrix is output per frame. On the other hand, in ACCUMULATE mode, a single covariance matrix is computed across a sequence of frames. One covariance matrix is returned per file. The latter mode is typically used by speech recognition systems to compute covariances of feature vectors.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: