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

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

src/d/r/dragnet-HEAD/dragnet/data_processing.py   dragnet(Download)
                # overall count
                h = Histogram1DFast(bins, 0, 1)
                h.update(block_percent)
                total_counts = h.bin_count
 

src/m/o/mozsci-HEAD/test/test_histogram.py   mozsci(Download)
 
        x = np.array([-1.0, 0.5, 3.2, 0.77, 9.99, 10.1, 8.2])
        h.update(x)
 
        xc = np.array([1.5, 2.5, 8.3])
        time1 = time.time()
        h = histogram.Histogram1DFast(100, -5, 5)
        h.update(x)
        time2 = time.time()
        out = np.histogram(x, bins=100, range=[-5, 5])
        x_stratified_sample = hist.stratified_sample(x, sample_size)
        hist_check = histogram.Histogram1DFast(5, 0, 5)
        hist_check.update(x_stratified_sample)
 
        # this "eye norm" too needs to be replaced