Hugin trunk 0.1
Loading...
Searching...
No Matches
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 TResultoperator() (int i) const
 

Private Attributes

TResult lut_array [UBound - LBound+1]
 
TResultlut
 

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

◆ LUT()

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

◆ operator()()

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, and threshold().

Member Data Documentation

◆ lut

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

◆ lut_array

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: