A data structure to assist the mapping of values to lower precisions. More...
#include <ibin.h>
Public Member Functions | |
granule () | |
!< Values greater than the target. More... | |
~granule () | |
Destructor. | |
Public Attributes | |
ibis::bitvector * | loce |
ibis::bitvector * | locm |
!< Values equal to the target. | |
ibis::bitvector * | locp |
!< Values less than the target. | |
double | maxm |
double | maxp |
double | minm |
double | minp |
A data structure to assist the mapping of values to lower precisions.
Any integral or floating-point value may be mapped to a lower precision floating-point value. This would produce a more granular representation of the values. The low precision floating-point value is called a target in this description. To facilitate this type of dynamic binning, we device this simple data structure to record the position of all records mapped to a particular target value. For all values map to a target, it further splits them according to whether the values actuallly are larger than the target, equal to the target or smaller than the target. The locations of the values less than, greater than and equal to the target is stored in locm, locp and loce. The variables minm and maxm store the actual minimum and maximum value among those that are smaller than the target. The variables minp and maxp store the actual minimum and maximum value among those that are larger than the target value.
|
inline |
!< Values greater than the target.
Constructor. User has to explicitly allocated the bitvectors.