Precalculated (tabulated) functor, for dealing with efficient version of expensive functions (with its associated cost in space and precision). More...
#include <TabFunct.hxx>
Public Member Functions | |
TData | operator() (const TData arg) |
TabFunct (const unsigned tableSize, const TData lowerBound, const TData upperBound) |
Precalculated (tabulated) functor, for dealing with efficient version of expensive functions (with its associated cost in space and precision).
The original function is passed as the template argument, requiring from the template, the same operator interface as the one that TabFunct offers: TData operator() (const TData).
The only constructor available takes three parameters : table size, lower bound and upper bound.
Definition at line 43 of file TabFunct.hxx.
CLAM::TabFunct< OriginalFunction >::TabFunct | ( | const unsigned | tableSize, | |
const TData | lowerBound, | |||
const TData | upperBound | |||
) | [inline] |
Definition at line 63 of file TabFunct.hxx.
References CLAM_ASSERT.
TData CLAM::TabFunct< OriginalFunction >::operator() | ( | const TData | arg | ) | [inline] |
Definition at line 48 of file TabFunct.hxx.
References CLAM_DEBUG_ASSERT.