Geant4  10.00.p02
G4INCL::InverseInterpolationTable Class Reference

Class for interpolating the inverse of a 1-dimensional function. More...

#include <G4INCLInverseInterpolationTable.hh>

+ Inheritance diagram for G4INCL::InverseInterpolationTable:
+ Collaboration diagram for G4INCL::InverseInterpolationTable:

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< G4doublegetNodeAbscissae () const
 
std::vector< G4doublegetNodeValues () 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...
 
IFunction1Dprimitive () const
 Return a pointer to the (numerical) primitive to this function. More...
 
InverseInterpolationTableinverseCDFTable (const G4int nNodes=60) const
 Return a pointer to the inverse of the CDF of this function. More...
 

Private Member Functions

void initDerivatives ()
 Initialise the values of the node derivatives. More...
 
void setFunctionDomain ()
 Set the function domain. More...
 

Private Attributes

std::vector< InterpolationNodenodes
 Interpolating nodes. More...
 

Additional Inherited Members

- Protected Attributes inherited from G4INCL::IFunction1D
G4double xMin
 Minimum value of the independent variable. More...
 
G4double xMax
 Maximum value of the independent variable. More...
 

Detailed Description

Class for interpolating the inverse of a 1-dimensional function.

Definition at line 108 of file G4INCLInverseInterpolationTable.hh.

Constructor & Destructor Documentation

G4INCL::InverseInterpolationTable::InverseInterpolationTable ( IFunction1D const &  f,
const unsigned int  nNodes = 30 
)

Definition at line 51 of file G4INCLInverseInterpolationTable.cc.

References G4INCL::IFunction1D::getXMaximum(), G4INCL::IFunction1D::getXMinimum(), initDerivatives(), nodes, and setFunctionDomain().

+ Here is the call graph for this function:

G4INCL::InverseInterpolationTable::InverseInterpolationTable ( std::vector< G4double > const &  x,
std::vector< G4double > const &  y 
)

Definition at line 83 of file G4INCLInverseInterpolationTable.cc.

References initDerivatives(), nodes, and setFunctionDomain().

+ Here is the call graph for this function:

virtual G4INCL::InverseInterpolationTable::~InverseInterpolationTable ( )
inlinevirtual

Definition at line 112 of file G4INCLInverseInterpolationTable.hh.

Member Function Documentation

std::vector<G4double> G4INCL::InverseInterpolationTable::getNodeAbscissae ( ) const
inline

Definition at line 116 of file G4INCLInverseInterpolationTable.hh.

References G4INCL::InterpolationNode::getX(), and nodes.

+ Here is the call graph for this function:

std::vector<G4double> G4INCL::InverseInterpolationTable::getNodeValues ( ) const
inline

Definition at line 123 of file G4INCLInverseInterpolationTable.hh.

References G4INCL::InterpolationNode::getY(), and nodes.

+ Here is the call graph for this function:

unsigned int G4INCL::InverseInterpolationTable::getNumberOfNodes ( ) const
inline

Definition at line 114 of file G4INCLInverseInterpolationTable.hh.

References nodes.

void G4INCL::InverseInterpolationTable::initDerivatives ( )
private

Initialise the values of the node derivatives.

Definition at line 96 of file G4INCLInverseInterpolationTable.cc.

References nodes.

Referenced by InverseInterpolationTable().

+ Here is the caller graph for this function:

G4double G4INCL::InverseInterpolationTable::operator() ( const G4double  x) const
virtual

Compute the value of the function.

Implements G4INCL::IFunction1D.

Definition at line 117 of file G4INCLInverseInterpolationTable.cc.

References nodes.

std::string G4INCL::InverseInterpolationTable::print ( ) const

Definition at line 134 of file G4INCLInverseInterpolationTable.cc.

References n, and nodes.

Referenced by G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), and G4INCL::NuclearDensityFactory::createRPCorrelationTable().

+ Here is the caller graph for this function:

void G4INCL::InverseInterpolationTable::setFunctionDomain ( )
private

Set the function domain.

Definition at line 106 of file G4INCLInverseInterpolationTable.cc.

References nodes, G4INCL::IFunction1D::xMax, and G4INCL::IFunction1D::xMin.

Referenced by InverseInterpolationTable().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<InterpolationNode> G4INCL::InverseInterpolationTable::nodes
private

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