Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(34)  |  Call(18)  |  Derive(0)  |  Import(16)

src/a/s/astroML-0.2/book_figures/appendix/fig_fft_text_example.py   astroML(Download)
from scipy import fftpack
 
from astroML.fourier import FT_continuous, sinegauss, sinegauss_FT
 
#----------------------------------------------------------------------
#------------------------------------------------------------
# Approximate the continuous Fourier Transform
f, H = FT_continuous(t, h)
 
rms_err = np.sqrt(np.mean(abs(H - sinegauss_FT(f, t0, f0, Q)) ** 2))

src/a/s/astroML-HEAD/book_figures/appendix/fig_fft_text_example.py   astroML(Download)
from scipy import fftpack
 
from astroML.fourier import FT_continuous, sinegauss, sinegauss_FT
 
#----------------------------------------------------------------------
#------------------------------------------------------------
# Approximate the continuous Fourier Transform
f, H = FT_continuous(t, h)
 
rms_err = np.sqrt(np.mean(abs(H - sinegauss_FT(f, t0, f0, Q)) ** 2))

src/a/s/astroML-0.2/book_figures/chapter10/fig_line_wavelet_PSD.py   astroML(Download)
from matplotlib import pyplot as plt
 
from astroML.fourier import FT_continuous, IFT_continuous
 
#----------------------------------------------------------------------
def check_funcs(t0=1, f0=2, Q=3):
    t = np.linspace(-5, 5, 10000)
    h = wavelet(t, t0, f0, Q)
 
    f, H = FT_continuous(t, h)
f0 = 2 ** np.linspace(-3, -1, 100)
 
f, H = FT_continuous(t, hN)
W = np.conj(wavelet_FT(f, 0, f0[:, None], Q))
t, HW = IFT_continuous(f, H * W)

src/a/s/astroML-0.2/book_figures/appendix/fig_LIGO_wavelets.py   astroML(Download)
 
from astroML.datasets import fetch_LIGO_bigdog
from astroML.fourier import FT_continuous, IFT_continuous
 
#----------------------------------------------------------------------
def check_funcs(t0=1, f0=2, Q=3):
    t = np.linspace(-10, 10, 10000)
    h = wavelet(t, t0, f0, Q)
 
    f, H = FT_continuous(t, h)
f0 = 2 ** np.linspace(5, 8, 50)
 
f, H = FT_continuous(t, h)
W = np.conj(wavelet_FT(f, 0, f0[:, None], Q))
 

src/a/s/astroML-HEAD/book_figures/chapter10/fig_line_wavelet_PSD.py   astroML(Download)
from matplotlib import pyplot as plt
 
from astroML.fourier import FT_continuous, IFT_continuous
 
#----------------------------------------------------------------------
def check_funcs(t0=1, f0=2, Q=3):
    t = np.linspace(-5, 5, 10000)
    h = wavelet(t, t0, f0, Q)
 
    f, H = FT_continuous(t, h)
f0 = 2 ** np.linspace(-3, -1, 100)
 
f, H = FT_continuous(t, hN)
W = np.conj(wavelet_FT(f, 0, f0[:, None], Q))
t, HW = IFT_continuous(f, H * W)

src/a/s/astroML-HEAD/book_figures/appendix/fig_LIGO_wavelets.py   astroML(Download)
 
from astroML.datasets import fetch_LIGO_bigdog
from astroML.fourier import FT_continuous, IFT_continuous
 
#----------------------------------------------------------------------
def check_funcs(t0=1, f0=2, Q=3):
    t = np.linspace(-10, 10, 10000)
    h = wavelet(t, t0, f0, Q)
 
    f, H = FT_continuous(t, h)
f0 = 2 ** np.linspace(5, 8, 50)
 
f, H = FT_continuous(t, h)
W = np.conj(wavelet_FT(f, 0, f0[:, None], Q))
 

src/a/s/astroML-0.2/book_figures/appendix/fig_LIGO_bandpower.py   astroML(Download)
 
from astroML.datasets import fetch_LIGO_bigdog
from astroML.fourier import FT_continuous
 
#----------------------------------------------------------------------
    X = x[indices].astype(complex)
 
    f, H = FT_continuous(t[:window_size], X)
 
    i = (f > 0)

src/a/s/astroML-HEAD/book_figures/appendix/fig_LIGO_bandpower.py   astroML(Download)
 
from astroML.datasets import fetch_LIGO_bigdog
from astroML.fourier import FT_continuous
 
#----------------------------------------------------------------------
    X = x[indices].astype(complex)
 
    f, H = FT_continuous(t[:window_size], X)
 
    i = (f > 0)

src/a/s/astroML-0.2/book_figures/chapter10/fig_wavelet_PSD.py   astroML(Download)
from matplotlib import pyplot as plt
 
from astroML.fourier import\
    FT_continuous, IFT_continuous, sinegauss, sinegauss_FT, wavelet_PSD
 

src/a/s/astroML-HEAD/book_figures/chapter10/fig_wavelet_PSD.py   astroML(Download)
from matplotlib import pyplot as plt
 
from astroML.fourier import\
    FT_continuous, IFT_continuous, sinegauss, sinegauss_FT, wavelet_PSD
 

  1 | 2  Next