20 #ifndef TESSERACT_CCSTRUCT_STATISTC_H_ 21 #define TESSERACT_CCSTRUCT_STATISTC_H_ 26 #include "scrollview.h" 45 STATS(int32_t min_bucket_value, int32_t max_bucket_value_plus_1);
52 bool set_range(int32_t min_bucket_value, int32_t max_bucket_value_plus_1);
56 void add(int32_t value, int32_t count);
64 double ile(
double frac)
const;
96 void smooth(int32_t factor);
106 int32_t max_clusters,
125 #ifndef GRAPHICS_DISABLED 141 #endif // GRAPHICS_DISABLED 154 int32_t choose_nth_item(int32_t index,
158 int32_t choose_nth_item(int32_t index,
162 int (*compar)(
const void*,
const void*));
164 void swap_entries(
void *array,
169 #endif // TESSERACT_CCSTRUCT_STATISTC_H_ int32_t * buckets_
Definition: statistc.h:148
int32_t cluster(float lower, float upper, float multiple, int32_t max_clusters, STATS *clusters)
Definition: statistc.cpp:319
void print() const
Definition: statistc.cpp:533
void clear()
Definition: statistc.cpp:82
void plot(ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const
Definition: statistc.cpp:584
int32_t total_count_
Definition: statistc.h:147
int32_t min_bucket() const
Definition: statistc.cpp:205
int32_t rangemin_
Definition: statistc.h:144
void smooth(int32_t factor)
Definition: statistc.cpp:288
double mean() const
Definition: statistc.cpp:134
bool local_min(int32_t x) const
Definition: statistc.cpp:261
int32_t rangemax_
Definition: statistc.h:146
double sd() const
Definition: statistc.cpp:150
int32_t get_total() const
Definition: statistc.h:86
void add(int32_t value, int32_t count)
Definition: statistc.cpp:100
~STATS()
Definition: statistc.cpp:93
Definition: statistc.h:33
double ile(double frac) const
Definition: statistc.cpp:173
int top_n_modes(int max_modes, GenericVector< tesseract::KDPairInc< float, int > > *modes) const
Definition: statistc.cpp:468
STATS()
Definition: statistc.cpp:52
bool set_range(int32_t min_bucket_value, int32_t max_bucket_value_plus_1)
Definition: statistc.cpp:63
int32_t max_bucket() const
Definition: statistc.cpp:220
int32_t mode() const
Definition: statistc.cpp:114
void plotline(ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const
Definition: statistc.cpp:611
void print_summary() const
Definition: statistc.cpp:559
double median() const
Definition: statistc.cpp:238
int32_t pile_count(int32_t value) const
Definition: statistc.h:78