quartic2d.HankelTransform.set_method#

HankelTransform.set_method(method, *, subdivisions=None, N=None, h=None)#

Select the radial quadrature and recompute the transform.

Parameters:
  • method ({'trapezoid', 'simpson', 'gl4', 'gl8', 'ogata'}) – Radial integration method. trapezoid, simpson, gl4, and gl8 operate on the sampled radial interval. ogata uses the optional hankel dependency.

  • subdivisions (int or None, optional) – Finite-grid refinement. When supplied, it replaces the stored subdivision count used by trapezoid, simpson, gl4, and gl8.

  • N (int or None, optional) – Ogata node count. Used only by method='ogata'.

  • h (float or None, optional) – Positive Ogata resolution parameter. Used only by method='ogata'.

Returns:

This instance after recomputing F_q.

Return type:

HankelTransform

Raises:
  • ValueError – If method is unsupported or a supplied numerical parameter is invalid.

  • ImportError – If method='ogata' and the optional hankel dependency is unavailable.

Notes

Method-specific parameters that are not supplied retain their current values.