#include <DBStat.h>
Public Member Functions | |
| Dbstat () | |
| Dbstat (const int ndb) | |
| Dbstat (const Dbstat &st) | |
| ~Dbstat () | |
| void | add (const int db1, const int db2, const SNavgstd &data) |
| Dbstat & | operator= (const Dbstat &st) |
| int | getNumberOfDb () const |
| SNavgstd * | getStatRow (const int db1) const |
Private Attributes | |
| int | numberdb |
| SNavgstd * | stat |
Internally I used a nxn array of SNavgstd to store the information where n is the totall number of databases.
| Dbstat::Dbstat | ( | ) | [inline] |
| Dbstat::~Dbstat | ( | ) | [inline] |
References stat.
| void Dbstat::add | ( | const int | db1, | |
| const int | db2, | |||
| const SNavgstd & | data | |||
| ) | [inline] |
| int Dbstat::getNumberOfDb | ( | ) | const [inline] |
| 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().
int Dbstat::numberdb [private] |
Referenced by add(), Dbstat(), getNumberOfDb(), getStatRow(), and operator=().
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().
1.5.6