Medial Code Documentation
|
Quantile structure accepts sorted data, extracted from histmaker. More...
#include <quantile.h>
Public Member Functions | |
void | Init (unsigned max_size) |
void | Push (bst_float fvalue, bst_float w, unsigned max_size) |
push a new element to sketch | |
void | Finalize (unsigned max_size) |
push final unfinished value to the sketch | |
Data Fields | |
double | sum_total {0.0} |
total sum of amount to be met | |
double | rmin |
statistics used in the sketch | |
double | wmin |
bst_float | last_fvalue |
last seen feature value | |
double | next_goal |
current size of sketch | |
common::WXQuantileSketch< bst_float, bst_float > * | sketch |
Quantile structure accepts sorted data, extracted from histmaker.
|
inline |
push a new element to sketch
fvalue | feature value, comes in sorted ascending order |
w | weight |
max_size |