|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class MeanCovarianceNdC serves for computation of the mean
and the covariance matrix of a set of N-dimensional data points.
The object are able to share a memory with other objects.
Variables:
Methods:
- MeanCovarianceNdC(const SizeT n)
-
Creates zero mean and zero covariance matrix representing
the 'n'-dimensional set containing no data points.
- MeanCovarianceNdC(const VectorC & point)
-
Creates the mean vector and zero covariance matrix representing
the data set containing just one data point. The vector 'point'
is shared.
- MeanCovarianceNdC(const MeanNdC & mean)
-
Creates the mean vector and zero covariance matrix representing
the data set represented by the 'mean'. The structure 'mean'
is shared.
- MeanCovarianceNdC(LongIntT n,const VectorC & mean,const MatrixC & cov)
-
Creates the mean vector and zero covariance matrix representing
the data set containing 'n' points and represented by the 'mean'
and the covariance matrix 'cov'. Both 'mean' and 'cov' are
shared.
- MeanCovarianceNdC(const MeanCovarianceNdC & meanCov)
-
Copy constructor.
- const MeanCovarianceNdC & operator=(const MeanCovarianceNdC & meanCov)
-
Assigment.
- MeanCovarianceNdC Copy() const
-
Returns a new physical copy of this object.
- MeanCovarianceNdC(const Array1dC<VectorC> & data)
-
DO not use this anymore.
- MeanCovarianceNdC(const ListC<VectorC> & data)
-
DO not use this anymore.
Information about an object
---------------------------
- LongIntT Number() const
-
Returns the number of data points which are represented by this object.
- const VectorC & Mean() const
-
Returns the mean vector of data points which are represented
by this object.
- const MeanNdC & MeanNd() const
-
Returns the mean statistics of data points which are represented
by this object.
- const MatrixC & Covariance() const
-
Returns the covariance matrix of data points which are represented
by this object.
Object modification
-------------------
- const MeanCovarianceNdC & SetZero()
-
Total initialization of this object resulting in the representation
the empty set of data points.
- const MeanCovarianceNdC & operator+=(const VectorC & point)
-
Adds one point to the set of data points.
- const MeanCovarianceNdC & operator-=(const VectorC & point)
-
Removes one point from the set of data points. Be carefull to remove
a point which was already added to the set, otherwise the representation
will not describe a real set.
- const MeanCovarianceNdC & operator+=(const MeanNdC & mean)
-
Adds a number of data poits represented by the 'mean' and zero
covariance matrix to this set.
- const MeanCovarianceNdC & operator-=(const MeanNdC & mean)
-
Removes a number of data poits represented by the 'mean' and zero
covariance matrix from this set. Be carefull to remove
points which were already added to the set, otherwise the representation
will not describe a real set.
- const MeanCovarianceNdC & operator+=(const MeanCovarianceNdC & meanCov)
-
Adds a number of data points represented by the 'meanCov' structure
to this set.
- const MeanCovarianceNdC & operator-=(const MeanCovarianceNdC & meanCov)
-
Removes a number of data points represented by the 'meanCov' structure
from this set. Be carefull to remove
points which were already added to the set, otherwise the representation
will not describe a real set.
- const MeanCovarianceNdC & Add(const VectorC & point,const VectorC & var)
-
Updates the mean and the covariance matrix by adding one N-d point
whose coordinates are known with the error described by the diagonal
convariance matrix represented byt the vector 'var'.
- const MeanCovarianceNdC & Remove(const VectorC & point,const VectorC & var)
-
Updates the mean and the covariance matrix by removing one N-d point
whose coordinates are known with the error described by the diagonal
convariance matrix represented byt the vector 'var'.
Be carefull to remove the point which was already added
to the set, otherwise the representation
will not describe a real set.
- const MeanCovarianceNdC & SetSum(const MeanCovarianceNdC & meanCov1,const MeanCovarianceNdC & meanCov2)
-
This object is set to be the union of two set of data points 'meanCov1'
and 'meanCov2'.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|