Geant4.10
|
#include <G4INCLIFunction1D.hh>
Public Member Functions | |
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 | operator() (const G4double x) const =0 |
Compute the value of the function. 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... | |
InverseInterpolationTable * | inverseCDFTable (const G4int nNodes=60) const |
Return a pointer to the inverse of the CDF of this function. More... | |
Protected Attributes | |
G4double | xMin |
Minimum value of the independent variable. More... | |
G4double | xMax |
Maximum value of the independent variable. More... | |
1D function interface
Definition at line 57 of file G4INCLIFunction1D.hh.
|
inline |
Definition at line 59 of file G4INCLIFunction1D.hh.
Referenced by inverseCDFTable(), and primitive().
Definition at line 63 of file G4INCLIFunction1D.hh.
|
inlinevirtual |
Definition at line 68 of file G4INCLIFunction1D.hh.
|
inlinevirtual |
Return the maximum allowed value of the independent variable.
Definition at line 74 of file G4INCLIFunction1D.hh.
References xMax.
Referenced by G4INCL::NuclearDensityFactory::createRPCorrelationTable(), inverseCDFTable(), G4INCL::InverseInterpolationTable::InverseInterpolationTable(), and primitive().
|
inlinevirtual |
Return the minimum allowed value of the independent variable.
Definition at line 71 of file G4INCLIFunction1D.hh.
References xMin.
Referenced by G4INCL::NuclearDensityFactory::createRPCorrelationTable(), inverseCDFTable(), G4INCL::InverseInterpolationTable::InverseInterpolationTable(), and primitive().
|
virtual |
Integrate the function between two values.
x0 | lower integration bound |
x1 | upper integration bound |
step | largest integration step size; if <0, 45 steps will be used |
Definition at line 65 of file G4INCLIFunction1D.cc.
References G4INCL::Math::max(), G4INCL::Math::min(), operator()(), G4INCL::Math::sign(), CLHEP::swap(), test::x, xMax, and xMin.
InverseInterpolationTable * G4INCL::IFunction1D::inverseCDFTable | ( | const G4int | nNodes = 60 | ) | const |
Return a pointer to the inverse of the CDF of this function.
Definition at line 122 of file G4INCLIFunction1D.cc.
References getXMaximum(), getXMinimum(), IFunction1D(), G4INCL::Math::min(), operator()(), test::x, xMax, and xMin.
Referenced by G4INCL::NuclearDensityFactory::createPCDFTable(), and G4INCL::NuclearDensityFactory::createRCDFTable().
Compute the value of the function.
Implemented in G4INCL::InverseInterpolationTable, G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillator, G4INCL::NuclearDensityFunctions::WoodsSaxon, G4INCL::NuclearDensityFunctions::Gaussian, G4INCL::NuclearDensityFunctions::ParisP, G4INCL::NuclearDensityFunctions::HardSphere, G4INCL::NuclearDensityFunctions::ModifiedHarmonicOscillatorRP, G4INCL::NuclearDensityFunctions::ParisR, G4INCL::NuclearDensityFunctions::WoodsSaxonRP, and G4INCL::NuclearDensityFunctions::GaussianRP.
Referenced by integrate(), inverseCDFTable(), and primitive().
IFunction1D * G4INCL::IFunction1D::primitive | ( | ) | const |
Return a pointer to the (numerical) primitive to this function.
Definition at line 104 of file G4INCLIFunction1D.cc.
References getXMaximum(), getXMinimum(), IFunction1D(), operator()(), test::x, and xMin.
|
protected |
Maximum value of the independent variable.
Definition at line 98 of file G4INCLIFunction1D.hh.
Referenced by getXMaximum(), integrate(), and inverseCDFTable().
|
protected |
Minimum value of the independent variable.
Definition at line 96 of file G4INCLIFunction1D.hh.
Referenced by getXMinimum(), integrate(), inverseCDFTable(), and primitive().