|
Geant4
10.03.p03
|
Class for interpolating the of a 1-dimensional function. More...
#include <G4INCLInterpolationTable.hh>


Public Member Functions | |
| InterpolationTable (std::vector< G4double > const &x, std::vector< G4double > const &y) | |
| virtual | ~InterpolationTable () |
| unsigned int | getNumberOfNodes () const |
| std::vector< G4double > | getNodeAbscissae () const |
| std::vector< G4double > | getNodeValues () const |
| G4double | operator() (const G4double x) const |
| Compute the value of the function. More... | |
| std::string | print () const |
Public Member Functions inherited from G4INCL::IFunction1D | |
| IFunction1D () | |
| IFunction1D (const G4double x0, const G4double x1) | |
| virtual | ~IFunction1D () |
| virtual G4double | getXMinimum () const |
| Return the minimum allowed value of the independent variable. More... | |
| virtual G4double | getXMaximum () const |
| Return the maximum allowed value of the independent variable. More... | |
| virtual G4double | integrate (const G4double x0, const G4double x1, const G4double step=-1.) const |
| Integrate the function between two values. More... | |
| IFunction1D * | primitive () const |
| Return a pointer to the (numerical) primitive to this function. More... | |
| InterpolationTable * | inverseCDFTable (ManipulatorFunc fWrap=0, const G4int nNodes=60) const |
| Return a pointer to the inverse of the CDF of this function. More... | |
Protected Member Functions | |
| InterpolationTable () | |
| void | initDerivatives () |
| Initialise the values of the node derivatives. More... | |
Protected Attributes | |
| std::vector< InterpolationNode > | nodes |
| Interpolating nodes. More... | |
Protected Attributes inherited from G4INCL::IFunction1D | |
| G4double | xMin |
| Minimum value of the independent variable. More... | |
| G4double | xMax |
| Maximum value of the independent variable. More... | |
Additional Inherited Members | |
Public Types inherited from G4INCL::IFunction1D | |
| typedef G4double(*const | ManipulatorFunc )(const G4double) |
| Typedef to simplify the syntax of inverseCDFTable. More... | |
Class for interpolating the of a 1-dimensional function.
Definition at line 106 of file G4INCLInterpolationTable.hh.
| G4INCL::InterpolationTable::InterpolationTable | ( | std::vector< G4double > const & | x, |
| std::vector< G4double > const & | y | ||
| ) |
Definition at line 54 of file G4INCLInterpolationTable.cc.

|
inlinevirtual |
Definition at line 109 of file G4INCLInterpolationTable.hh.
|
protected |
Definition at line 52 of file G4INCLInterpolationTable.cc.
| std::vector< G4double > G4INCL::InterpolationTable::getNodeAbscissae | ( | ) | const |
Definition at line 67 of file G4INCLInterpolationTable.cc.

| std::vector< G4double > G4INCL::InterpolationTable::getNodeValues | ( | ) | const |
Definition at line 74 of file G4INCLInterpolationTable.cc.

|
inline |
Definition at line 111 of file G4INCLInterpolationTable.hh.
|
protected |
Initialise the values of the node derivatives.
Definition at line 81 of file G4INCLInterpolationTable.cc.

Compute the value of the function.
Implements G4INCL::IFunction1D.
Definition at line 91 of file G4INCLInterpolationTable.cc.
| std::string G4INCL::InterpolationTable::print | ( | ) | const |
Definition at line 108 of file G4INCLInterpolationTable.cc.

|
protected |
Interpolating nodes.
Definition at line 128 of file G4INCLInterpolationTable.hh.