tesseract
4.1.1
|
#include <statistc.h>
Public Member Functions | |
STATS (int32_t min_bucket_value, int32_t max_bucket_value_plus_1) | |
STATS ()=default | |
~STATS () | |
bool | set_range (int32_t min_bucket_value, int32_t max_bucket_value_plus_1) |
void | clear () |
void | add (int32_t value, int32_t count) |
int32_t | mode () const |
double | mean () const |
double | sd () const |
double | ile (double frac) const |
int32_t | min_bucket () const |
int32_t | max_bucket () const |
double | median () const |
int32_t | pile_count (int32_t value) const |
int32_t | get_total () const |
bool | local_min (int32_t x) const |
void | smooth (int32_t factor) |
int32_t | cluster (float lower, float upper, float multiple, int32_t max_clusters, STATS *clusters) |
int | top_n_modes (int max_modes, GenericVector< tesseract::KDPairInc< float, int > > *modes) const |
void | print () const |
void | print_summary () const |
void | plot (ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const |
void | plotline (ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const |
Definition at line 31 of file statistc.h.
STATS::STATS | ( | int32_t | min_bucket_value, |
int32_t | max_bucket_value_plus_1 | ||
) |
Definition at line 40 of file statistc.cpp.
|
default |
STATS::~STATS | ( | ) |
Definition at line 86 of file statistc.cpp.
void STATS::add | ( | int32_t | value, |
int32_t | count | ||
) |
Definition at line 93 of file statistc.cpp.
void STATS::clear | ( | ) |
Definition at line 75 of file statistc.cpp.
int32_t STATS::cluster | ( | float | lower, |
float | upper, | ||
float | multiple, | ||
int32_t | max_clusters, | ||
STATS * | clusters | ||
) |
Definition at line 312 of file statistc.cpp.
|
inline |
Definition at line 84 of file statistc.h.
double STATS::ile | ( | double | frac | ) | const |
Definition at line 166 of file statistc.cpp.
bool STATS::local_min | ( | int32_t | x | ) | const |
Definition at line 254 of file statistc.cpp.
int32_t STATS::max_bucket | ( | ) | const |
Definition at line 213 of file statistc.cpp.
double STATS::mean | ( | ) | const |
Definition at line 127 of file statistc.cpp.
double STATS::median | ( | ) | const |
Definition at line 231 of file statistc.cpp.
int32_t STATS::min_bucket | ( | ) | const |
Definition at line 198 of file statistc.cpp.
int32_t STATS::mode | ( | ) | const |
Definition at line 107 of file statistc.cpp.
|
inline |
Definition at line 76 of file statistc.h.
void STATS::plot | ( | ScrollView * | window, |
float | xorigin, | ||
float | yorigin, | ||
float | xscale, | ||
float | yscale, | ||
ScrollView::Color | colour | ||
) | const |
Definition at line 577 of file statistc.cpp.
void STATS::plotline | ( | ScrollView * | window, |
float | xorigin, | ||
float | yorigin, | ||
float | xscale, | ||
float | yscale, | ||
ScrollView::Color | colour | ||
) | const |
Definition at line 604 of file statistc.cpp.
void STATS::print | ( | ) | const |
Definition at line 526 of file statistc.cpp.
void STATS::print_summary | ( | ) | const |
Definition at line 552 of file statistc.cpp.
double STATS::sd | ( | ) | const |
Definition at line 143 of file statistc.cpp.
bool STATS::set_range | ( | int32_t | min_bucket_value, |
int32_t | max_bucket_value_plus_1 | ||
) |
Definition at line 56 of file statistc.cpp.
void STATS::smooth | ( | int32_t | factor | ) |
Definition at line 281 of file statistc.cpp.
int STATS::top_n_modes | ( | int | max_modes, |
GenericVector< tesseract::KDPairInc< float, int > > * | modes | ||
) | const |
Definition at line 461 of file statistc.cpp.