Base-class for quantized float leaf nodes.
More...
#include <nanovdb/NanoVDB.h>
Inherited by LeafData< Fp16, CoordT, MaskT, LOG2DIM >, LeafData< Fp4, CoordT, MaskT, LOG2DIM >, LeafData< Fp8, CoordT, MaskT, LOG2DIM >, and LeafData< FpN, CoordT, MaskT, LOG2DIM >.
|
void | init (float min, float max, uint8_t bitWidth) |
|
float | getMin () const |
| return the quantized minimum of the active values in this node More...
|
|
float | getMax () const |
| return the quantized maximum of the active values in this node More...
|
|
float | getAvg () const |
| return the quantized average of the active values in this node More...
|
|
float | getDev () const |
| return the quantized standard deviation of the active values in this node More...
|
|
void | setMin (float min) |
|
void | setMax (float max) |
|
void | setAvg (float avg) |
|
void | setDev (float dev) |
|
template<typename T > |
void | setOrigin (const T &ijk) |
|
template<typename CoordT, template< uint32_t > class MaskT, uint32_t LOG2DIM>
struct nanovdb::LeafFnBase< CoordT, MaskT, LOG2DIM >
Base-class for quantized float leaf nodes.
return the quantized average of the active values in this node
return the quantized standard deviation of the active values in this node
- Note
- 0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
return the quantized maximum of the active values in this node
return the quantized minimum of the active values in this node
void init |
( |
float |
min, |
|
|
float |
max, |
|
|
uint8_t |
bitWidth |
|
) |
| |
|
inline |
- Note
- min <= avg <= max or 0 <= (avg-min)/(min-max) <= 1
- Note
- 0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
- Note
- min <= X <= max or 0 <= (X-min)/(min-max) <= 1
- Note
- min <= X <= max or 0 <= (X-min)/(min-max) <= 1
void setOrigin |
( |
const T & |
ijk | ) |
|
|
inline |
MaskT<LOG2DIM> mValueMask |