#include <cached_function.h>
Collaboration diagram for BTK::CachedUnaryFunction< T, ArgType >:

Public Member Functions | |
| template<typename UnaryFunction> | CachedUnaryFunction (UnaryFunction &func, ArgType min_arg, ArgType max_arg, ArgType sample_spacing) |
| ~CachedUnaryFunction () | |
| T | operator() (ArgType arg) |
when constucted from a function object (func), this class samples the function within a specified range and stores the results in a lookup table. When called it approximates the function value by returning the linear interpolate of the two nearest sample points.
|
||||||||||||||||||||||||||||
|
CachedUnaryFunction constructor
|
|
|||||||||
|
|
|
||||||||||
|
return a linear-interpolate approximation of func |
1.3.6