queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::Base1DQuadrature Class Referenceabstract

Base class for one-dimensional quadrature rules (numerical integration of functions). More...

#include <1DQuadrature.h>

Inheritance diagram for QUESO::Base1DQuadrature:
QUESO::BaseQuadrature QUESO::GaussianHermite1DQuadrature QUESO::Generic1DQuadrature QUESO::UniformLegendre1DQuadrature QUESO::WignerChebyshev2nd1DQuadrature QUESO::WignerInverseChebyshev1st1DQuadrature

Public Member Functions

Constructor/Destructor methods
 Base1DQuadrature (double minDomainValue, double maxDomainValue, unsigned int order)
 Default constructor. More...
 
virtual ~Base1DQuadrature ()=0
 Pure virtual destructor, forcing this to be an abstract object. More...
 
Mathematical methods
double minDomainValue () const
 Returns the minimum value of the domain of the (one-dimensional) function. More...
 
double maxDomainValue () const
 Returns the maximum value of the domain of the (one-dimensional) function. More...
 
unsigned int order () const
 Returns the order of the quadrature rule. More...
 
const std::vector< double > & positions () const
 Array of the positions for the numerical integration. More...
 
- Public Member Functions inherited from QUESO::BaseQuadrature
 BaseQuadrature ()
 
virtual ~BaseQuadrature ()=0
 Pure virtual destructor, forcing this to be an abstract object. More...
 
const std::vector< double > & weights () const
 Array of the weights used in the numerical integration. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 
unsigned int m_order
 
std::vector< double > m_positions
 
- Protected Attributes inherited from QUESO::BaseQuadrature
std::vector< double > m_weights
 

Detailed Description

Base class for one-dimensional quadrature rules (numerical integration of functions).

Base class for numerical integration via quadrature rules of one-dimensional functions.

Definition at line 48 of file 1DQuadrature.h.

Constructor & Destructor Documentation

QUESO::Base1DQuadrature::Base1DQuadrature ( double  minDomainValue,
double  maxDomainValue,
unsigned int  order 
)

Default constructor.

Definition at line 34 of file 1DQuadrature.C.

References m_maxDomainValue, and m_minDomainValue.

38  : BaseQuadrature(),
41  m_order (order)
42 {
43  queso_require_less_msg(m_minDomainValue, m_maxDomainValue, "min >= max");
44 
45  // UQ_UNAVAILABLE_RANK,
46  // "Base1DQuadrature::constructor()",
47  // "order = 0");
48 }
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:61
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:55
unsigned int order() const
Returns the order of the quadrature rule.
Definition: 1DQuadrature.C:67
QUESO::Base1DQuadrature::~Base1DQuadrature ( )
pure virtual

Pure virtual destructor, forcing this to be an abstract object.

Definition at line 50 of file 1DQuadrature.C.

51 {
52 }

Member Function Documentation

double QUESO::Base1DQuadrature::maxDomainValue ( ) const

Returns the maximum value of the domain of the (one-dimensional) function.

Definition at line 61 of file 1DQuadrature.C.

References m_maxDomainValue.

62 {
63  return m_maxDomainValue;
64 }
double QUESO::Base1DQuadrature::minDomainValue ( ) const

Returns the minimum value of the domain of the (one-dimensional) function.

Definition at line 55 of file 1DQuadrature.C.

References m_minDomainValue.

56 {
57  return m_minDomainValue;
58 }
unsigned int QUESO::Base1DQuadrature::order ( ) const

Returns the order of the quadrature rule.

Definition at line 67 of file 1DQuadrature.C.

References m_order.

68 {
69  return m_order;
70 }
const std::vector<double>& QUESO::Base1DQuadrature::positions ( ) const
inline

Array of the positions for the numerical integration.

Definition at line 74 of file 1DQuadrature.h.

References m_positions.

Referenced by QUESO::Generic1DQuadrature::Generic1DQuadrature().

75  { queso_assert(!m_positions.empty());
76  return m_positions; }
std::vector< double > m_positions
Definition: 1DQuadrature.h:83

Member Data Documentation


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

Generated on Tue Jun 5 2018 19:49:18 for queso-0.57.1 by  doxygen 1.8.5