CDVectorStat |
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.
Methods |
Vector Statistics |
double Max()CDVectorStat<TPixel>::MeanReturn the maximum value of the elements.
double Mean()CDVectorStat<TPixel>::MinReturn the mean value of the elements.
double Mean()CDVectorStat<TPixel>::SkewnessReturn the minimum value of the elements.
double Skewness();Return the skewness of the elements.
double Std();Return the standard deviation of the elements.
double Sum();Return the sum of the elements.
double Max()Return the variance of the elements.
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