queso-0.53.0
Protected Attributes | List of all members
QUESO::Base1DQuadrature Class Referenceabstract

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

#include <1DQuadrature.h>

Inheritance diagram for QUESO::Base1DQuadrature:
Inheritance graph
[legend]

Public Member Functions

Constructor/Destructor methods
 Base1DQuadrature (double minDomainValue, double maxDomainValue, unsigned int order)
 Default constructor. More...
 
virtual ~Base1DQuadrature ()
 Virtual destructor. 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...
 
const std::vector< double > & weights () const
 Array of the weights used in the numerical integration. More...
 
virtual void dumbRoutine () const =0
 A bogus method. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 
unsigned int m_order
 
std::vector< double > m_positions
 
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 47 of file 1DQuadrature.h.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 32 of file 1DQuadrature.C.

References m_maxDomainValue, m_minDomainValue, and queso_require_less_msg.

36  :
39  m_order (order),
40  m_positions (0),
41  m_weights (0)
42 {
44 
45  // UQ_UNAVAILABLE_RANK,
46  // "Base1DQuadrature::constructor()",
47  // "order = 0");
48 }
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:55
std::vector< double > m_positions
Definition: 1DQuadrature.h:85
unsigned int order() const
Returns the order of the quadrature rule.
Definition: 1DQuadrature.C:67
#define queso_require_less_msg(expr1, expr2, msg)
Definition: asserts.h:87
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:61
std::vector< double > m_weights
Definition: 1DQuadrature.h:86
QUESO::Base1DQuadrature::~Base1DQuadrature ( )
virtual

Virtual destructor.

Definition at line 50 of file 1DQuadrature.C.

51 {
52 }

Member Function Documentation

virtual void QUESO::Base1DQuadrature::dumbRoutine ( ) const
pure virtual
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

Array of the positions for the numerical integration.

Definition at line 73 of file 1DQuadrature.C.

References m_positions, and queso_require_not_equal_to_msg.

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

74 {
75  queso_require_not_equal_to_msg(m_positions.size(), 0, "size = 0");
76  return m_positions;
77 }
std::vector< double > m_positions
Definition: 1DQuadrature.h:85
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:86
const std::vector< double > & QUESO::Base1DQuadrature::weights ( ) const

Array of the weights used in the numerical integration.

Definition at line 80 of file 1DQuadrature.C.

References m_weights, and queso_require_not_equal_to_msg.

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

81 {
82  queso_require_not_equal_to_msg(m_weights.size(), 0, "size = 0");
83  return m_weights;
84 }
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:86
std::vector< double > m_weights
Definition: 1DQuadrature.h:86

Member Data Documentation

double QUESO::Base1DQuadrature::m_maxDomainValue
protected
double QUESO::Base1DQuadrature::m_minDomainValue
protected
unsigned int QUESO::Base1DQuadrature::m_order
protected
std::vector<double> QUESO::Base1DQuadrature::m_positions
protected
std::vector<double> QUESO::Base1DQuadrature::m_weights
protected

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

Generated on Thu Jun 11 2015 13:52:35 for queso-0.53.0 by  doxygen 1.8.5