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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
It returns an histogram with the given range and bin

src/s/e/seq_crumbs-HEAD/crumbs/filters.py   seq_crumbs(Download)
            print key, 'distance distribution'
            counter = IntCounter(iter(stats2[key]))
            distribution = counter.calculate_distribution(remove_outliers=True)
            counts = distribution['counts']
            bin_limits = distribution['bin_limits']

src/s/e/seq_crumbs-HEAD/test/test_statistics.py   seq_crumbs(Download)
    def test_distribution(self):
        'It tests the histogram function'
 
        ints_counter = self.create_test_counter()
        distrib = ints_counter.calculate_distribution(bins=10,
        ints_counter = IntCounter({0: 2, 1: 1, 3: 1})
        result = [2, 1, 1]
        assert ints_counter.calculate_distribution(bins=3)['counts'] == result