MUQ  0.4.3
muq::Approximation::GaussPattersonQuadrature Class Reference

1d Gauss Patterson nested quadrature rule More...

#include <GaussPattersonQuadrature.h>

Inheritance diagram for muq::Approximation::GaussPattersonQuadrature:

Detailed Description

1d Gauss Patterson nested quadrature rule

Definition at line 14 of file GaussPattersonQuadrature.h.

Public Member Functions

 GaussPattersonQuadrature ()
 
virtual ~GaussPattersonQuadrature ()=default
 
virtual void Compute (unsigned int index) override
 
virtual unsigned int Exactness (unsigned int quadOrder) const override
 
- Public Member Functions inherited from muq::Approximation::Quadrature
 Quadrature (unsigned int dimIn)
 
virtual ~Quadrature ()=default
 
virtual void Compute (Eigen::RowVectorXi const &orders)
 
virtual unsigned int Dim () const
 
virtual Eigen::MatrixXd const & Points () const
 
virtual Eigen::VectorXd const & Weights () const
 

Constructor & Destructor Documentation

◆ GaussPattersonQuadrature()

GaussPattersonQuadrature::GaussPattersonQuadrature ( )

Definition at line 5 of file GaussPattersonQuadrature.cpp.

◆ ~GaussPattersonQuadrature()

virtual muq::Approximation::GaussPattersonQuadrature::~GaussPattersonQuadrature ( )
virtualdefault

Member Function Documentation

◆ Compute()

void GaussPattersonQuadrature::Compute ( unsigned int  index)
overridevirtual

◆ Exactness()

unsigned int GaussPattersonQuadrature::Exactness ( unsigned int  quadOrder) const
overridevirtual

Returns the order of the polynomial that can be integrated exactly by this quadrature rule. An \(n\)-point Gauss quadrature rule integrates polynomials of order \(2n-1\) exactly. Thus, since \(n\)= quadOrder+1, for Gauss quadrature rules, this function will return 2*quadOrder+1.

In the multivariate tensor product rule, the maximum exactness across all dimensions is returned.

If not exactness information is known (or implemented) for a particular quadrature rule, an exception will be thrown.

Reimplemented from muq::Approximation::Quadrature.

Definition at line 10 of file GaussPattersonQuadrature.cpp.


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