20 #ifndef TESSERACT_CCSTRUCT_STATISTC_H_
21 #define TESSERACT_CCSTRUCT_STATISTC_H_
60 double ile(
double frac)
const;
75 if (value <= rangemin_)
77 if (value >= rangemax_ - 1)
78 return buckets_[rangemax_ - rangemin_ - 1];
79 return buckets_[value - rangemin_];
111 #ifndef GRAPHICS_DISABLED
127 #endif // GRAPHICS_DISABLED
148 int (*compar)(
const void*,
const void*));
155 #endif // TESSERACT_CCSTRUCT_STATISTC_H_
void plot(ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const
inT32 cluster(float lower, float upper, float multiple, inT32 max_clusters, STATS *clusters)
void add(inT32 value, inT32 count)
double ile(double frac) const
bool local_min(inT32 x) const
inT32 pile_count(inT32 value) const
inT32 choose_nth_item(inT32 index, float *array, inT32 count)
void smooth(inT32 factor)
void plotline(ScrollView *window, float xorigin, float yorigin, float xscale, float yscale, ScrollView::Color colour) const
bool set_range(inT32 min_bucket_value, inT32 max_bucket_value_plus_1)
void print_summary() const
void swap_entries(void *array, size_t size, inT32 index1, inT32 index2)