A.I.M.S algorithms


aims::RealToRealFunctionTabulation Class Reference

#include <aims/fastComputation/tabulation.h>

Collaboration diagram for aims::RealToRealFunctionTabulation:

Public Types

typedef double(* function_type )(const double &)
 

Public Member Functions

 RealToRealFunctionTabulation (const function_type function, const double &min, const double &max, const ulong tableSize)
 
ulong getIndex (const double &) const
 
const double & operator() (const double &) const
 
const double & operator[] (ulong) const
 

Protected Attributes

double _minimum
 
double _sampling
 
std::vector< double > _table
 

Detailed Description

Definition at line 44 of file tabulation.h.

Member Typedef Documentation

typedef double(* aims::RealToRealFunctionTabulation::function_type)(const double &)

Definition at line 48 of file tabulation.h.

Constructor & Destructor Documentation

aims::RealToRealFunctionTabulation::RealToRealFunctionTabulation ( const function_type  function,
const double &  min,
const double &  max,
const ulong  tableSize 
)

Member Function Documentation

ulong aims::RealToRealFunctionTabulation::getIndex ( const double &  v) const
inline

Definition at line 72 of file tabulation.h.

References _minimum, and _sampling.

Referenced by operator()().

const double & aims::RealToRealFunctionTabulation::operator() ( const double &  v) const
inline

Definition at line 79 of file tabulation.h.

References _table, and getIndex().

const double & aims::RealToRealFunctionTabulation::operator[] ( ulong  i) const
inline

Definition at line 67 of file tabulation.h.

References _table.

Member Data Documentation

double aims::RealToRealFunctionTabulation::_minimum
protected

Definition at line 61 of file tabulation.h.

Referenced by getIndex().

double aims::RealToRealFunctionTabulation::_sampling
protected

Definition at line 61 of file tabulation.h.

Referenced by getIndex().

std::vector<double> aims::RealToRealFunctionTabulation::_table
protected

Definition at line 62 of file tabulation.h.

Referenced by operator()(), and operator[]().


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