Dbstat Class Reference

#include <DBStat.h>

List of all members.

Public Member Functions

 Dbstat ()
 Dbstat (const int ndb)
 Dbstat (const Dbstat &st)
 ~Dbstat ()
void add (const int db1, const int db2, const SNavgstd &data)
Dbstatoperator= (const Dbstat &st)
int getNumberOfDb () const
SNavgstdgetStatRow (const int db1) const

Private Attributes

int numberdb
SNavgstdstat


Detailed Description

This class stores the summary statistics of all x all (without self x self) SNavgstd elements.

Internally I used a nxn array of SNavgstd to store the information where n is the totall number of databases.


Constructor & Destructor Documentation

Dbstat::Dbstat (  )  [inline]

Dbstat::Dbstat ( const int  ndb  )  [inline]

References numberdb, and stat.

Dbstat::Dbstat ( const Dbstat st  ) 

References numberdb, and stat.

Dbstat::~Dbstat (  )  [inline]

References stat.


Member Function Documentation

void Dbstat::add ( const int  db1,
const int  db2,
const SNavgstd data 
) [inline]

index into db1*db2

References numberdb, and stat.

Referenced by readStatInt().

Dbstat & Dbstat::operator= ( const Dbstat st  ) 

References numberdb, and stat.

int Dbstat::getNumberOfDb (  )  const [inline]

References numberdb.

Referenced by removeFalsePositiveHits().

SNavgstd* Dbstat::getStatRow ( const int  db1  )  const [inline]

return a pointer to the first element db1_i => { db2_j | j=0, 1, ..., numdb-1 }

You need to constrain yourself to getNumberOfDb() elements of the array. The whole array is (numberdb * numberdb).

References numberdb, and stat.

Referenced by removeFalsePositiveHits().


Member Data Documentation

int Dbstat::numberdb [private]

SNavgstd* Dbstat::stat [private]

it is numberdb x numberdb array of SNAvgstd Not storing self x self comparisons. In this case you need to allocate (numberdb*numberdb)+1 elements.

Referenced by add(), Dbstat(), getStatRow(), operator=(), and ~Dbstat().


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

Generated on Wed Oct 14 21:49:21 2009 for Softwares from Orpara by  doxygen 1.5.6