lfeat::LUT< LBound, UBound, TResult, TArg > Class Template Reference

#include <MathStuff.h>

List of all members.

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 48 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 
) [inline, explicit]

Definition at line 51 of file MathStuff.h.

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


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 60 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]

Definition at line 66 of file MathStuff.h.

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

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 65 of file MathStuff.h.

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


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7