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

Compression oracle based on relative difference. More...

#include <CreateNanoGrid.h>

Public Member Functions

 RelDiff (float tolerance=-1.0f)
 
 RelDiff (const RelDiff &)=default
 
 ~RelDiff ()=default
 
 operator bool () const
 
void setTolerance (float tolerance)
 
float getTolerance () const
 
bool operator() (float exact, float approx) const
 Return true if the approximate value is within the accepted relative error bounds of the exact value. More...
 

Detailed Description

Compression oracle based on relative difference.

Definition at line 270 of file CreateNanoGrid.h.

Constructor & Destructor Documentation

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

Definition at line 275 of file CreateNanoGrid.h.

nanovdb::RelDiff::RelDiff ( const RelDiff )
default
nanovdb::RelDiff::~RelDiff ( )
default

Member Function Documentation

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

Definition at line 280 of file CreateNanoGrid.h.

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

Definition at line 278 of file CreateNanoGrid.h.

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

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

Required member method

Definition at line 285 of file CreateNanoGrid.h.

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

Definition at line 279 of file CreateNanoGrid.h.


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