Quadrature#

The samples template.

class equadratures.quadrature.Quadrature(parameters, basis, points, mesh, corr=None, oversampling=7.0)[source]#

The class defines a Sampling object. It serves as a template for all sampling methodologies.

Parameters
  • parameters (list) – A list of parameters, where each element of the list is an instance of the Parameter class.

  • basis (Basis) – An instance of the Basis class corresponding to the multi-index set used.

  • points (numpy.ndarray) – Array containing the quadrature points.

  • mesh (numpy.ndarray) – Description needed.

  • corr (numpy.ndarray, optional) – Description needed.

  • oversampling (float, optional) – Description needed.

get_points()[source]#

Returns the quadrature points.

Returns

Array of quadrature points.

Return type

numpy.ndarray

get_points_and_weights()[source]#

Returns the quadrature points and weights.

Returns

Tuple (points,weights) containing two numpy.ndarray’s; the quadrature points and weights.

Return type

tuple

get_weights()[source]#

Returns the quadrature weights.

Returns

Array of quadrature weights

Return type

numpy.ndarray