Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
|
Class for interpolating the inverse of a 1-dimensional function. More...
#include <G4INCLInverseInterpolationTable.hh>
Public Member Functions | |
InverseInterpolationTable (IFunction1D const &f, const unsigned int nNodes=30) | |
InverseInterpolationTable (std::vector< G4double > const &x, std::vector< G4double > const &y) | |
virtual | ~InverseInterpolationTable () |
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. | |
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. | |
virtual G4double | getXMaximum () const |
Return the maximum allowed value of the independent variable. | |
virtual G4double | operator() (const G4double x) const =0 |
Compute the value of the function. | |
virtual G4double | integrate (const G4double x0, const G4double x1, const G4double step=-1.) const |
Integrate the function between two values. | |
IFunction1D * | primitive () const |
Return a pointer to the (numerical) primitive to this function. | |
InverseInterpolationTable * | inverseCDFTable (const G4int nNodes=60) const |
Return a pointer to the inverse of the CDF of this function. | |
Additional Inherited Members | |
Protected Attributes inherited from G4INCL::IFunction1D | |
G4double | xMin |
Minimum value of the independent variable. | |
G4double | xMax |
Maximum value of the independent variable. | |
Class for interpolating the inverse of a 1-dimensional function.
Definition at line 115 of file G4INCLInverseInterpolationTable.hh.
G4INCL::InverseInterpolationTable::InverseInterpolationTable | ( | IFunction1D const & | f, |
const unsigned int | nNodes = 30 |
||
) |
Definition at line 53 of file G4INCLInverseInterpolationTable.cc.
G4INCL::InverseInterpolationTable::InverseInterpolationTable | ( | std::vector< G4double > const & | x, |
std::vector< G4double > const & | y | ||
) |
Definition at line 85 of file G4INCLInverseInterpolationTable.cc.
|
inlinevirtual |
Definition at line 119 of file G4INCLInverseInterpolationTable.hh.
|
inline |
Definition at line 123 of file G4INCLInverseInterpolationTable.hh.
|
inline |
Definition at line 130 of file G4INCLInverseInterpolationTable.hh.
|
inline |
Definition at line 121 of file G4INCLInverseInterpolationTable.hh.
Compute the value of the function.
Implements G4INCL::IFunction1D.
Definition at line 119 of file G4INCLInverseInterpolationTable.cc.
std::string G4INCL::InverseInterpolationTable::print | ( | ) | const |
Definition at line 135 of file G4INCLInverseInterpolationTable.cc.
Referenced by G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), G4INCL::NuclearDensityFactory::createRPCorrelationTable(), and G4INCL::NuclearDensity::NuclearDensity().