|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class MeanNdC serves for computation of the mean
of a set of N-dimensional data points. The class is implemented
as a bid object able to share memory with points.
Parent Classes:
Variables:
Methods:
- MeanNdC(const SizeT dim)
-
Creates zero mean representing the 'n'-dimensional set
containing no data points.
- MeanNdC(const PointNdC & point)
-
Creates the mean vector representing
the data set containing just one data point.
This object is attached to the memory of 'point'.
- MeanNdC(LongIntT n,const PointNdC & mean)
-
Creates the mean vector representing
the data set containing 'n' points and represented by the 'mean'.
This object is attached to the memory of 'mean'.
- MeanNdC(const MeanNdC & mean)
-
Copy constructor. In fact it creates only another handler.
- const MeanNdC & operator=(const MeanNdC & mean)
-
Assigment.
- MeanNdC Copy() const
-
Returns a new physical copy of this object.
Information about an object
---------------------------
- LongIntT Number() const
-
Returns number of points which were added into the object.
- const MeanNdC & MeanNd() const
-
Access to the const object.
- MeanNdC & MeanNd()
-
Access to the object.
- const PointNdC & Mean() const
-
Returns the current value of the mean.
Object modification
-------------------
- MeanNdC & SetZero()
-
Total initialization of this object resulting in the representation
the empty set of data points.
- MeanNdC & Set(LongIntT n,const PointNdC & m)
-
Sets the new content of mean object. It will represent 'n' points
with the mean location 'm'.
- MeanNdC & operator+=(const PointNdC & point)
-
Adds a point to the set.
- MeanNdC & operator-=(const PointNdC & point)
-
Removes a point from the set. Be carefull to remove
a point which was already added to the set, otherwise the representation
will not describe a real set.
- MeanNdC & operator+=(const MeanNdC & mean)
-
Adds the whole set of points represented by the mean object 'm'.
- MeanNdC & operator-=(const MeanNdC & mean)
-
Removes the whole set of points represented by the mean object 'm'.
Be carefull to remove points which was already added to the set,
otherwise the representation will not describe a real set.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|