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

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

src/m/o/mozsci-HEAD/test/test_histogram.py   mozsci(Download)
        # check sampler
        t1 = time.time()
        samples = h.sample(3e6)
        t2 = time.time()
        print "Time to sample 1D for 3e6 = " + str(t2 - t1) + " s"
 
        # generate a 1e6 size sample
        x = hist.sample(int(hist.bin_count.sum()))
 
        # now sample the large sample in 2 ways