|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class LinearSums1dC serves for computation of linear dependences
in 1D space.
Typedefs:
- typedef StdTypeC::RealT RealT;
-
The computed sums.
Variables:
- RealT n;
-
- RealT sumX;
-
- RealT sumXX;
-
Methods:
- LinearSums1dC()
-
The zero sums.
- LinearSums1dC(const LinearSums1dC & sums)
-
Copy constructor.
Updating.
---------
- void SetZero()
-
Initializies the sums.
- const LinearSums1dC & operator+=(const RealT & p)
-
Adds another data 'p' to the sums.
- const LinearSums1dC & Add(const RealT & nn,const RealT & v)
-
Adds 'nn' times the value 'v'.
Computation of statistics.
--------------------------
- RealT N() const
-
Returns the number of data have been entered into the sums.
- RealT Mean() const
-
Returns the mean value of the data.
- RealT Var() const
-
Returns the variance of the data.
- RealT SqrMean() const
-
Returns the mean value of data squares.
- ostream & operator<<(ostream & outS,const LinearSums1dC & sums)
-
- istream & operator>>(istream & inS,LinearSums1dC & sums)
-
- const LinearSums1dC & operator+=(const LinearSums1dC::RealT & p)
-
- const LinearSums1dC & Add(const LinearSums1dC::RealT & nn,const LinearSums1dC::RealT & v)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|