PARTONS/NumA++  
Numerical Analysis C++ routines
Public Member Functions | Protected Member Functions | List of all members
NumA::ChebyshevBIntegrator1D Class Reference

Chebyshev quadrature for computing the integral \( \int_{-1}^1 \mathrm{dx} \frac{f(x)}{\sqrt{1-x^2}} \). More...

Inheritance diagram for NumA::ChebyshevBIntegrator1D:
NumA::QuadratureIntegrator1D NumA::Integrator1D

Public Member Functions

 ChebyshevBIntegrator1D (unsigned int N=48)
 
virtual ~ChebyshevBIntegrator1D ()
 
virtual ChebyshevBIntegrator1Dclone () const
 
virtual void setN (unsigned int n)
 
- Public Member Functions inherited from NumA::QuadratureIntegrator1D
 QuadratureIntegrator1D (unsigned int N=0)
 Constructor. More...
 
virtual ~QuadratureIntegrator1D ()
 Default destructor. More...
 
virtual double integrate (FunctionType1D *pFunction, double a, double b, std::vector< double > &parameters)
 Integration routine. More...
 
virtual void configure (const ElemUtils::Parameters &parameters)
 Provides a generic method to configure all types of integrations by passing a Parameters object. More...
 
unsigned int getN () const
 
const std::vector< double > & getNodes () const
 
const std::vector< double > & getWeights () const
 
- Public Member Functions inherited from NumA::Integrator1D
 Integrator1D ()
 Default constructor. More...
 
virtual ~Integrator1D ()
 Default destructor. More...
 
const TolerancesgetTolerances () const
 
void setTolerances (const Tolerances &tolerances)
 
const ErrorsgetErrors () const
 
void setErrors (const Errors &errors)
 

Protected Member Functions

 ChebyshevBIntegrator1D (const ChebyshevBIntegrator1D &other)
 
void setNodesAndWeights ()
 
- Protected Member Functions inherited from NumA::QuadratureIntegrator1D
 QuadratureIntegrator1D (const QuadratureIntegrator1D &other)
 Copy constructor. More...
 
- Protected Member Functions inherited from NumA::Integrator1D
 Integrator1D (const Integrator1D &other)
 Copy constructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from NumA::Integrator1D
template<typename PointerToObj , typename PointerToMemFn >
static Functor1D< PointerToObj, PointerToMemFn > * newIntegrationFunctor (PointerToObj *object, PointerToMemFn function)
 Use FunctorUtils::newFunctor1D instead. More...
 
static Integrator1DnewIntegrator (const IntegratorType1D::Type &oneDimIntegratorType)
 Instantiates an Integrator object. More...
 
- Static Public Attributes inherited from NumA::QuadratureIntegrator1D
static const std::string PARAM_NAME_N = "numberOfNodes"
 Parameter used in the configure() to set the order of the quadrature. More...
 
- Static Public Attributes inherited from NumA::Integrator1D
static const std::string PARAM_NAME_ABSOLUTE_TOLERANCE
 Parameter used in the configure() to set the absolute tolerance. More...
 
static const std::string PARAM_NAME_RELATIVE_TOLERANCE
 Parameter used in the configure() to set the relative tolerance. More...
 
- Protected Attributes inherited from NumA::QuadratureIntegrator1D
unsigned int m_N
 Order of the quadrature (number of nodes). More...
 
std::vector< double > m_nodes
 Nodes of the quadrature. More...
 
std::vector< double > m_weights
 Weights of the quadrature. More...
 
- Protected Attributes inherited from NumA::Integrator1D
Tolerances m_tolerances
 Absolute and relative tolerances. More...
 
Errors m_errors
 Absolute and relative errors estimations. More...
 

Detailed Description

Chebyshev quadrature for computing the integral \( \int_{-1}^1 \mathrm{dx} \frac{f(x)}{\sqrt{1-x^2}} \).

See Integrator1D documentation for an example.

Constructor & Destructor Documentation

◆ ChebyshevBIntegrator1D() [1/2]

NumA::ChebyshevBIntegrator1D::ChebyshevBIntegrator1D ( unsigned int  N = 48)

◆ ~ChebyshevBIntegrator1D()

NumA::ChebyshevBIntegrator1D::~ChebyshevBIntegrator1D ( )
virtual

◆ ChebyshevBIntegrator1D() [2/2]

NumA::ChebyshevBIntegrator1D::ChebyshevBIntegrator1D ( const ChebyshevBIntegrator1D other)
protected

Member Function Documentation

◆ clone()

ChebyshevBIntegrator1D * NumA::ChebyshevBIntegrator1D::clone ( ) const
virtual

◆ setN()

void NumA::ChebyshevBIntegrator1D::setN ( unsigned int  n)
virtual
Parameters
nOrder of the quadrature (number of nodes).

Implements NumA::QuadratureIntegrator1D.

◆ setNodesAndWeights()

void NumA::ChebyshevBIntegrator1D::setNodesAndWeights ( )
protected

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