To read and manipulate tabulated functions. More...

#include <Tabulation.h>

Public Member Functions

 Tabulation ()
 Default constructor.
 
 Tabulation (string file)
 Constructor using file name.
 
 ~Tabulation ()
 Destructor.
 
void setFile (string file)
 Set file name.
 
real_t getValue (string funct, real_t x)
 Return the calculated value of the function.
 
real_t getDerivative (string funct, real_t x)
 Return the derivative of the function at a given point.
 
real_t getValue (string funct, real_t x, real_t y)
 Return the calculated value of the function.
 
real_t getValue (string funct, real_t x, real_t y, real_t z)
 Return the calculated value of the function.
 
real_t getValue (string funct, real_t x, real_t y, real_t z, real_t t)
 Return the calculated value of the function.
 
size_t getNbFuncts () const
 Get the Number of read functions.
 
size_t getNbVar (size_t n) const
 Get number of variables of a given function.
 
string getFunctName (size_t n) const
 Get the name of a read function.
 
size_t getSize (size_t n, size_t i) const
 Get number of points defining tabulation.
 
real_t getMinVar (size_t n, size_t i) const
 Get minimal value of a variable.
 
real_t getMaxVar (size_t n, size_t i) const
 Get maximal value of a variable.
 

Detailed Description

To read and manipulate tabulated functions.

This class enables reading a tabulated function of one to three variables and calculating the value of the function using piecewise multilinear interpolation.
The file defining the function is an XML file where any function is introduced via the tag "Function". The abcissae are uniformly distributed.

Author
Rachid Touzani