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

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/a/s/astroML-0.2/book_figures/chapter5/fig_poisson_likelihood.py   astroML(Download)
from matplotlib import pyplot as plt
from scipy import stats, interpolate
from astroML.stats.random import linear
from astroML.plotting.mcmc import convert_to_stdev
 
b_true = 1. / (xmax - xmin) - 0.5 * a_true * (xmax + xmin)
 
lin_dist = linear(xmin, xmax, a_true)
data = lin_dist.rvs(N)
 

src/a/s/astroML-0.2/book_figures/chapter5/fig_poisson_continuous.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import linear
 
#----------------------------------------------------------------------
xmax = 10.0
 
lin_dist = linear(xmin, xmax, a_true)
data = lin_dist.rvs(N)
x = np.linspace(xmin - 1, xmax + 1, 1000)

src/a/s/astroML-0.2/book_figures/chapter5/fig_poisson_comparison.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import linear
 
#----------------------------------------------------------------------
xmax = 10.0
 
lin_dist = linear(xmin, xmax, a_true)
x = lin_dist.rvs(N)
 

src/a/s/astroML-HEAD/book_figures/chapter5/fig_poisson_likelihood.py   astroML(Download)
from matplotlib import pyplot as plt
from scipy import stats, interpolate
from astroML.stats.random import linear
from astroML.plotting.mcmc import convert_to_stdev
 
b_true = 1. / (xmax - xmin) - 0.5 * a_true * (xmax + xmin)
 
lin_dist = linear(xmin, xmax, a_true)
data = lin_dist.rvs(N)
 

src/a/s/astroML-HEAD/book_figures/chapter5/fig_poisson_continuous.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import linear
 
#----------------------------------------------------------------------
xmax = 10.0
 
lin_dist = linear(xmin, xmax, a_true)
data = lin_dist.rvs(N)
x = np.linspace(xmin - 1, xmax + 1, 1000)

src/a/s/astroML-HEAD/book_figures/chapter5/fig_poisson_comparison.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import linear
 
#----------------------------------------------------------------------
xmax = 10.0
 
lin_dist = linear(xmin, xmax, a_true)
x = lin_dist.rvs(N)