Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
Mean1dC::Mean1dC(void)
Mean1dC::Mean1dC(const Mean1dC &)
Mean1dC::Mean1dC(LocationT)
Mean1dC::Mean1dC(NumberT,LocationT)
Mean1dC::Number(void) const
Mean1dC::Mean(void) const
Mean1dC::SetZero(void)
Mean1dC::Set(const NumberT,const LocationT)
Mean1dC::operator+=(LocationT)
Mean1dC::operator-=(LocationT)
Mean1dC::operator+=(const Mean1dC &)
Mean1dC::ReadFrom(istream &)
Mean1dC::Set(const Mean1dC::NumberT,const Mean1dC::LocationT)
Mean1dC::operator+=(Mean1dC::LocationT)
Mean1dC::operator-=(Mean1dC::LocationT)
Mean1dC
 
The class Mean1dC keeps the information about the mean of a scalar data set.
 
include "amma/Mean1d.hh"
User Level:Default
Library:Mst1
Example:exBnd.cc
Section:Statistics.1-D
In Scope:std

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