Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
lfeat::LUT< LBound, UBound, TResult, TArg > Class Template Reference

#include <MathStuff.h>

Public Member Functions

 LUT (TResult(*f)(TArg), double coeffadd=0, double coeffmul=1)
 
const TResult & operator() (int i) const
 

Private Attributes

TResult lut_array [UBound-LBound+1]
 
TResult * lut
 

Detailed Description

template<int LBound = -128, int UBound = 127, class TResult = double, class TArg = double>
class lfeat::LUT< LBound, UBound, TResult, TArg >

Definition at line 40 of file MathStuff.h.

Constructor & Destructor Documentation

template<int LBound = -128, int UBound = 127, class TResult = double, class TArg = double>
lfeat::LUT< LBound, UBound, TResult, TArg >::LUT ( TResult(*)(TArg)  f,
double  coeffadd = 0,
double  coeffmul = 1 
)
inlineexplicit

Member Function Documentation

template<int LBound = -128, int UBound = 127, class TResult = double, class TArg = double>
const TResult& lfeat::LUT< LBound, UBound, TResult, TArg >::operator() ( int  i) const
inline

Definition at line 52 of file MathStuff.h.

References lfeat::LUT< LBound, UBound, TResult, TArg >::lut.

Member Data Documentation

template<int LBound = -128, int UBound = 127, class TResult = double, class TArg = double>
TResult* lfeat::LUT< LBound, UBound, TResult, TArg >::lut
private
template<int LBound = -128, int UBound = 127, class TResult = double, class TArg = double>
TResult lfeat::LUT< LBound, UBound, TResult, TArg >::lut_array[UBound-LBound+1]
private

Definition at line 57 of file MathStuff.h.

Referenced by lfeat::LUT< LBound, UBound, TResult, TArg >::LUT().


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