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

Class for one-dimensional generic quadrature rules (numerical integration of functions). More...

#include <1DQuadrature.h>

Inheritance diagram for QUESO::Generic1DQuadrature:
QUESO::Base1DQuadrature QUESO::BaseQuadrature

Public Member Functions

Constructor/Destructor methods
 Generic1DQuadrature (double minDomainValue, double maxDomainValue, const std::vector< double > &positions, const std::vector< double > &weights)
 Default constructor. More...
 
 ~Generic1DQuadrature ()
 Destructor. More...
 
- Public Member Functions inherited from QUESO::Base1DQuadrature
 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...
 
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...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::Base1DQuadrature
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

Class for one-dimensional generic quadrature rules (numerical integration of functions).

Class for generic quadrature rules for numerical integration of one-dimensional functions.

Definition at line 94 of file 1DQuadrature.h.

Constructor & Destructor Documentation

QUESO::Generic1DQuadrature::Generic1DQuadrature ( double  minDomainValue,
double  maxDomainValue,
const std::vector< double > &  positions,
const std::vector< double > &  weights 
)

Default constructor.

Definition at line 75 of file 1DQuadrature.C.

References QUESO::Base1DQuadrature::m_positions, QUESO::BaseQuadrature::m_weights, QUESO::Base1DQuadrature::positions(), QUESO::queso_require_equal_to_msg, QUESO::queso_require_not_equal_to_msg, and QUESO::BaseQuadrature::weights().

80  :
82 {
85 
86  queso_require_not_equal_to_msg(m_positions.size(), 0, "invalid positions");
87 
88  queso_require_equal_to_msg(m_positions.size(), m_weights.size(), "inconsistent positions and weight");
89 }
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
MonteCarloSGOptions::MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix queso_require_not_equal_to_msg)(m_env.optionsInputFileName(), std::string(""), std::string("this constructor is incompatible with the absence of an options input file"))
const std::vector< double > & positions() const
Array of the positions for the numerical integration.
Definition: 1DQuadrature.h:74
Base1DQuadrature(double minDomainValue, double maxDomainValue, unsigned int order)
Default constructor.
Definition: 1DQuadrature.C:34
std::vector< double > m_weights
const std::vector< double > & weights() const
Array of the weights used in the numerical integration.
std::vector< double > m_positions
Definition: 1DQuadrature.h:83
MonteCarloSGOptions::MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix, const McOptionsValues &alternativeOptionsValues queso_require_equal_to_msg)(m_env.optionsInputFileName(), std::string(""), std::string("this constructor is incompatible with the existence of an options input file"))
QUESO::Generic1DQuadrature::~Generic1DQuadrature ( )

Destructor.

Definition at line 91 of file 1DQuadrature.C.

92 {
93 }

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