This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpmath import mp | |
from mpsci.distributions import rel_breitwigner | |
import numpy as np | |
from scipy import stats | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpmath import mp | |
from mpsci.distributions import rel_breitwigner | |
import numpy as np | |
from scipy import stats | |
from scipy.special import powm1 | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from timeit import timeit | |
import numpy as np | |
import scipy | |
from scipy.signal import upfirdn, resample_poly | |
try: | |
from scipy.signal._upfirdn_apply import _output_len | |
except ImportError: | |
from scipy.signal._upfirdn import _output_len |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
s0 = """ | |
@lru_cache | |
def _get_skewnorm_odd_moments(): | |
_skewnorm_odd_moments = { | |
1: Polynomial([1]), | |
3: Polynomial([3, -1]), | |
5: Polynomial([15, -10, 3]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Find numpy functions whose docstrings do not contain "Examples". | |
""" | |
import types | |
import numpy as np | |
modules = [ | |
'np', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mpmath | |
mpmath.mp.dps = 80 | |
def truncnorm_delta_cdf(a, b): | |
if a > 0: | |
delta = mpmath.ncdf(-a) - mpmath.ncdf(-b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
erfinv_approx.py | |
Create a Pade approximant for the erfinv function. | |
""" | |
import mpmath | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
def make_namedtuple_bunch1(typename, field_names, extra_field_names): | |
namedtuple_type = namedtuple(typename, field_names) | |
def __new__(cls, *args, **kwds): | |
# Pull out any keyword parameters that are not in the fields of | |
# the namedtuple. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing numpy/random/_bounded_integers.pxd.in | |
Processing numpy/random/_bounded_integers.pyx.in | |
Processing numpy/random/_common.pyx | |
Processing numpy/random/_generator.pyx | |
Processing numpy/random/_mt19937.pyx | |
Processing numpy/random/_pcg64.pyx | |
Processing numpy/random/_philox.pyx | |
Processing numpy/random/_sfc64.pyx | |
Processing numpy/random/bit_generator.pyx | |
Processing numpy/random/mtrand.pyx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing numpy/random/_bounded_integers.pxd.in | |
Processing numpy/random/_bit_generator.pyx | |
Processing numpy/random/_bounded_integers.pyx | |
Processing numpy/random/_bounded_integers.pyx.in | |
Processing numpy/random/_common.pyx | |
Processing numpy/random/_generator.pyx | |
Processing numpy/random/_mt19937.pyx | |
Processing numpy/random/_pcg64.pyx | |
Processing numpy/random/_philox.pyx | |
Processing numpy/random/_sfc64.pyx |
NewerOlder