:mod:`g2tools` Module ===================================================== .. module:: g2tools :synopsis: Least-Squares Fit to Correlators. .. moduleauthor:: G.P. Lepage .. |g2tools| replace:: :mod:`g2tools` .. |GVar| replace:: :class:`gvar.GVar` .. |Re+e-| replace:: R\ :sub:`e+e-` g-2 Anomaly ------------- The main tool for calculating the muon's anomaly is: .. autofunction:: g2tools.a_mu Moments ---------- The main tools for creating and manipulating moments are: .. autofunction:: g2tools.moments .. autofunction:: g2tools.mom2taylor .. autofunction:: g2tools.taylor2mom Subtracted Vacuum Polarization ------------------------------- A subtracted vacuum polarization function (``Pi-hat``) is represented by the following classes: .. autoclass:: g2tools.vacpol Methods include: .. automethod:: g2tools.vacpol.taylor .. automethod:: g2tools.vacpol.badpoles .. automethod:: g2tools.vacpol.FT .. automethod:: g2tools.vacpol.scalar .. automethod:: g2tools.vacpol.fermion .. automethod:: g2tools.vacpol.vector .. autoclass:: g2tools.fourier_vacpol Windows -------- The following is a filter that can be used with :meth:`moments` or :class:`fourier_vacpol` to impose windows on :math:`G(t)`. .. autoclass:: g2tools.TanhWin |Re+e-| --------- There are two tools for analyzing data from e+e- annihilation to hadrons (|Re+e-|\ (E)): .. autofunction:: g2tools.R2G .. autofunction:: g2tools.R2a_mu Padé Approximants ------------------- The following two functions are used for calculating Padé approximants from the Taylor coefficients of an arbitrary function. The first (:func:`g2tools.pade_svd`) implements an algorithm that uses *svd* cuts to address instabilities caused by uncertainties in the Taylor coefficients. The second function (:func:`g2tools.pade_gvar`) is built on the first but allows Taylor coefficients to have uncertainties (|GVar|\s). The statistical uncertainties and correlations between different coefficients are propagated through the analysis. .. autofunction:: g2tools.pade_svd .. autofunction:: g2tools.pade_gvar