gftool.pade.Averager¶
-
gftool.pade.
Averager
(z_in, coeff, *, valid_pades, kind: gftool.pade.KindSelector)[source]¶ Create function for averaging Pade scheme.
- Parameters
- z_in(N_in,) complex ndarray
complex mesh used to calculate coeff
- coeff(…, N_in) complex ndarray
coefficients for Pade, calculated from pade.coefficients
- valid_padeslist_like of bool
Mask which continuations are correct, all Pades where valid_pades evaluates to false will be ignored for the average.
- kind{KindGf, KindSelf}
Defines the asymptotic of the continued function and the number of minimum and maximum input points used for Pade. For
KindGf
the function goes like \(1/z\) for large z, forKindSelf
the function behaves like a constant for large z.
- Returns
- averagefunction
The continued function f(z) (z, ) -> Result. f(z).x contains the function values f(z).err the associated variance.
- Raises
- TypeError
If valid_pades not of type bool
- RuntimeError
If all there are none elements of valid_pades that evaluate to True.