|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Typedefs:
- typedef IntT NumberT;
-
The number of items of a data set.
- typedef RealT LocationT;
-
The value of the mean.
Variables:
- LocationT mean;
-
The current mean of elements.
- NumberT number;
-
The number of elements contributing to the mean.
Methods:
- Mean1dC()
-
Zero mean of the empty data set.
- Mean1dC(const Mean1dC & oth)
-
Copy constructor.
- Mean1dC(LocationT p)
-
Creates the mean representing the set containing just one value 'p'.
- Mean1dC(NumberT n,LocationT m)
-
Creates the set of 'n' values with the mean 'm'.
The state of the object
-----------------------
- NumberT Number() const
-
Returns the number of elements which have been taken into account.
- LocationT Mean() const
-
Returns the current mean value.
Updating of the object
----------------------
- void SetZero()
-
Sets the mean to be zero of the empty data set.
- void Set(const NumberT n,const LocationT m)
-
Resets the object to represent the data set with the mean 'm'.
- const Mean1dC & operator+=(LocationT data)
-
Adds another element to the data set.
- const Mean1dC & operator-=(LocationT data)
-
Removes the element from the data set. It is assumed that the element
was added before this operation.
- const Mean1dC & operator+=(const Mean1dC & m)
-
Adds the set of data represented by the mean 'm'.
I/O operations
--------------
- void ReadFrom(istream & s)
-
Sets the object according the data read from the input stream 's'.
- void Set(const Mean1dC::NumberT n,const Mean1dC::LocationT m)
-
- const Mean1dC & operator+=(Mean1dC::LocationT data)
-
- const Mean1dC & operator-=(Mean1dC::LocationT data)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|