HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::AbsDiff Class Reference

Compression oracle based on absolute difference. More...

#include <CreateNanoGrid.h>

Public Member Functions

 AbsDiff (float tolerance=-1.0f)
 
 AbsDiff (const AbsDiff &)=default
 
 ~AbsDiff ()=default
 
 operator bool () const
 
void init (nanovdb::GridClass gClass, float background)
 
void setTolerance (float tolerance)
 
float getTolerance () const
 
bool operator() (float exact, float approx) const
 Return true if the approximate value is within the accepted absolute error bounds of the exact value. More...
 

Detailed Description

Compression oracle based on absolute difference.

Definition at line 230 of file CreateNanoGrid.h.

Constructor & Destructor Documentation

nanovdb::AbsDiff::AbsDiff ( float  tolerance = -1.0f)
inline
Note
The default value of -1 means it's un-initialized!

Definition at line 235 of file CreateNanoGrid.h.

nanovdb::AbsDiff::AbsDiff ( const AbsDiff )
default
nanovdb::AbsDiff::~AbsDiff ( )
default

Member Function Documentation

float nanovdb::AbsDiff::getTolerance ( ) const
inline

Definition at line 250 of file CreateNanoGrid.h.

void nanovdb::AbsDiff::init ( nanovdb::GridClass  gClass,
float  background 
)
inline

Definition at line 239 of file CreateNanoGrid.h.

nanovdb::AbsDiff::operator bool ( ) const
inline

Definition at line 238 of file CreateNanoGrid.h.

bool nanovdb::AbsDiff::operator() ( float  exact,
float  approx 
) const
inline

Return true if the approximate value is within the accepted absolute error bounds of the exact value.

Required member method

Definition at line 255 of file CreateNanoGrid.h.

void nanovdb::AbsDiff::setTolerance ( float  tolerance)
inline

Definition at line 249 of file CreateNanoGrid.h.


The documentation for this class was generated from the following file: