CDVectorStat

Class Description

The CDVectorStat class provides functions calculating statistics for the vector.

Constructors/Destructor

CDVectorStat (void)
Creates a vector instance, but does not initialize it.

CDVectorStat
    (int length,
     double *storage = 0)
Creates a dynamically sized double precision vector with length elements.

If storage is zero, new memory is allocated. If storage is not zero, use the memory pointed to by storage.

CDVectorStat (const CDVectorStat &vec)
Creates a vector instance with the number of elements and element values of vector vec.
 
Argument Description
length number of elements in vector
storage pointer to previously allocated memory
vec reference to a vector

~CDVectorStat (void)
Destructor.

Top

Methods

Vector Statistics 

CDVectorStat<TPixel>::Max

double Max()

Return the maximum value of the elements.

Top

CDVectorStat<TPixel>::Mean
double Mean()

Return the mean value of the elements.

Top

CDVectorStat<TPixel>::Min
double Mean()

Return the minimum value of the elements.

Top
 

CDVectorStat<TPixel>::Skewness
double Skewness();

Return the skewness of the elements.

Top


CDVectorStat<TPixel>::Std

double Std();

Return the standard deviation of the elements.

Top


CDVectorStat<TPixel>::Sum

double Sum();

Return the sum of the elements.

Top


CDVectorStat<TPixel>::Var

 double Max()

Return the variance of the elements.

Top

Miscellaneous 

CDVectorStat<TPixel>::ToString

void ToString(CString& strOut)

This function returns a string representing the vector.
 
Argument Description
strOut reference to the string

Overloaded Operators 

CDVectorStat::operator=

CDVectorStat& operator= (double value)
Assigns value to all elements of this vector.

CDVectorStat& operator= (const CDVectorStat& vec)
Copies the values of another vector to the corresponding elements of this vector.
 
Argument Description
value value to be assigned to this vector's elements
vec reference to vector with values to be copied


Copyright, 1999
Section for Image Analysis
Department of Mathematical Modelling
Technical University of Denmark
DK-2800 Lyngby

Authors: Rune Fisker

Last updated: 03-05-1999