|
Medial Code Documentation
|
experimental wsummary More...
#include <quantile.h>
Data Structures | |
| struct | Entry |
| an entry in the sketch summary More... | |
| struct | Queue |
| input data queue before entering the summary More... | |
Public Member Functions | |
| WQSummary (Entry *data, size_t size) | |
| RType | MaxError () const |
| Entry | Query (DType qvalue, size_t &istart) const |
| query qvalue, start from istart | |
| RType | MaxRank () const |
| void | CopyFrom (const WQSummary &src) |
| copy content from src | |
| void | MakeFromSorted (const Entry *entries, size_t n) |
| void | CheckValid (RType eps) const |
| debug function, validate whether the summary run consistency check to check if it is a valid summary | |
| void | SetPrune (const WQSummary &src, size_t maxsize) |
| set current summary to be pruned summary of src assume data field is already allocated to be at least maxsize | |
| void | SetCombine (const WQSummary &sa, const WQSummary &sb) |
| set current summary to be merged summary of sa and sb | |
| void | Print () const |
| void | FixError (RType *err_mingap, RType *err_maxgap, RType *err_wgap) const |
Data Fields | |
| Entry * | data |
| data field | |
| size_t | size |
| number of elements in the summary | |
experimental wsummary
| DType | type of data content |
| RType | type of rank |
|
inline |
debug function, validate whether the summary run consistency check to check if it is a valid summary
| eps | the tolerate error level, used when RType is floating point and some inconsistency could occur due to rounding error |
|
inline |
copy content from src
| src | source sketch |
|
inline |
|
inline |
|
inline |
query qvalue, start from istart
| qvalue | the value we query for |
| istart | starting position |
|
inline |
set current summary to be merged summary of sa and sb
| sa | first input summary to be merged |
| sb | second input summary to be merged |
|
inline |
set current summary to be pruned summary of src assume data field is already allocated to be at least maxsize
| src | source summary |
| maxsize | size we can afford in the pruned sketch |