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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/astroML-0.2/book_figures/chapter5/fig_malmquist_bias.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import trunc_exp
 
#----------------------------------------------------------------------
hmax = 5.7
k = 0.6 * np.log(10)
true_dist = trunc_exp(hmin - 1.4,
                      hmax + 3.4,
                      0.6 * np.log(10))

src/a/s/astroML-HEAD/book_figures/chapter5/fig_malmquist_bias.py   astroML(Download)
import numpy as np
from matplotlib import pyplot as plt
from astroML.stats.random import trunc_exp
 
#----------------------------------------------------------------------
hmax = 5.7
k = 0.6 * np.log(10)
true_dist = trunc_exp(hmin - 1.4,
                      hmax + 3.4,
                      0.6 * np.log(10))