lshkit::Stat Class Reference

Basic statistics. More...

#include <eval.h>

List of all members.

Public Member Functions

void reset ()
void append (float r)
Statoperator<< (float r)
int getCount () const
float getSum () const
float getAvg () const
float getMax () const
float getMin () const
float getStd () const
void merge (const Stat &stat)


Detailed Description

Basic statistics.

The interface is self-evident. Usage:

  Stat stat;

  stat << 1.0 << 2.0 << 3.0;

  Stat stat2;
  stat2 << 3.0 << 5.0 << 6.0;

  stat.merge(stat2);

  stat.getCount();
  stat.getSum();
  stat.getMax();
  stat.getMin();
  stat.getStd();


The documentation for this class was generated from the following file:
Get LSHKIT at SourceForge.net. Fast, secure and Free Open Source software downloads doxygen