fdhwlib  2.0.25
statistics Class Reference

#include <statistics.h>

Inheritance diagram for statistics:
analyseNoise

List of all members.

Public Member Functions

Public Attributes

Private Attributes


Detailed Description

Provide statistics for a time series.

The statistic is described by the minimum and maximum value, the mean value and the variance of the series.

Definition at line 23 of file statistics.h.


Constructor & Destructor Documentation

statistics::statistics ( )
statistics::~statistics ( )

Member Function Documentation

void statistics::add ( statistics stat)

Add another statistical set.

unsigned short statistics::calcMax ( unsigned short *  data,
int  n 
)
float statistics::calcMean ( unsigned short *  data,
int  n 
)
unsigned short statistics::calcMin ( unsigned short *  data,
int  n 
)
float statistics::calcVariance ( unsigned short *  data,
int  n 
)
void statistics::display ( FILE *  fout)
void statistics::minus ( statistics stat)

Substract another statistical set.

void statistics::of ( unsigned short *  data,
int  n 
)

Calculate the statistics a time series defined by n values of type unsigned short.

void statistics::of ( statistics stat,
int  n 
)

Calculate the statistics of a time series that has been analysed in n segments of equal length.

statistics statistics::operator= ( statistics  zuw) [inline]

Definition at line 28 of file statistics.h.

References max, mean, min, and variance.

                                       { // ???

    this->min = zuw.min;
    this->max = zuw.max;
    this->mean = zuw.mean;
    this->variance = zuw.variance;

  return(*this); // MS VC++ wants it ?!
  }
void statistics::setMask ( unsigned short  mask) [inline]

Set mask to select the data and remove possible flags.

Definition at line 56 of file statistics.h.

References mask.

                                    {
    this->mask = mask;
  }

Member Data Documentation

unsigned short statistics::mask [private]

Mask for the data.

Definition at line 78 of file statistics.h.

Referenced by setMask().

unsigned short statistics::max

Definition at line 71 of file statistics.h.

Referenced by operator=().

Definition at line 72 of file statistics.h.

Referenced by operator=().

unsigned short statistics::min

Definition at line 70 of file statistics.h.

Referenced by operator=().

Definition at line 73 of file statistics.h.

Referenced by operator=().


The documentation for this class was generated from the following file: