queso-0.57.1
|
Class for Hermite-Gauss quadrature rule for one-dimensional functions. More...
#include <1DQuadrature.h>
Public Member Functions | |
Constructor/Destructor methods | |
GaussianHermite1DQuadrature (double mean, double stddev, unsigned int order) | |
Default constructor. More... | |
~GaussianHermite1DQuadrature () | |
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... | |
Protected Attributes | |
double | m_mean |
double | m_stddev |
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 |
Class for Hermite-Gauss quadrature rule for one-dimensional functions.
Hermite-Gauss quadrature, also called Hermite quadrature, is a Gaussian quadrature over the interval \((-\infty,\infty)\) with weighting function \( W(x)=e^{-x^2}\).
The abscissas for quadrature order \( n \) are given by the roots \( x_i \) of the Hermite polynomials \( H_n(x)\), which occur symmetrically about 0.
The abscissas and weights can be computed analytically for small \( n \):
\( n \) | \( x_i \) | \( w_i \) |
---|---|---|
2 | \(\pm \frac{1}{2}\sqrt{2} \) | \( \frac{1}{2}\sqrt{\pi} \) |
3 | \( 0 \) | \( \frac{2}{3}\sqrt{\pi} \) |
\(\pm \frac{1}{2}\sqrt{6} \) | \( \frac{1}{6}\sqrt{\pi} \) | |
4 | \(\pm \sqrt{\frac{3-\sqrt{6}}{2}} \) | \( \frac{\sqrt{\pi}}{4(3-\sqrt{6})} \) |
\(\pm \sqrt{\frac{3-\sqrt{6}}{2}} \) | \( \frac{\sqrt{\pi}}{4(3+\sqrt{6})} \) |
Definition at line 194 of file 1DQuadrature.h.
QUESO::GaussianHermite1DQuadrature::GaussianHermite1DQuadrature | ( | double | mean, |
double | stddev, | ||
unsigned int | order | ||
) |
Default constructor.
Constructs a Gaussian-Hermite quadrature of order order
. Valid values for the order of the quadrature rule are: 1-9, 19.
mean
and stddev
. Definition at line 402 of file 1DQuadrature.C.
References QUESO::Base1DQuadrature::m_order, QUESO::Base1DQuadrature::m_positions, and QUESO::BaseQuadrature::m_weights.
QUESO::GaussianHermite1DQuadrature::~GaussianHermite1DQuadrature | ( | ) |
|
protected |
Definition at line 211 of file 1DQuadrature.h.
|
protected |
Definition at line 212 of file 1DQuadrature.h.