Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78390
| From | random832@fastmail.us |
|---|---|
| References | <0d28ee82-2240-4f10-9db9-e966c0e62a13@googlegroups.com> <20140923093244.066bb10b@rg.highlandtechnology.com> <1a63fb8d-e0b8-4385-acbc-ddb6bf1f0f7d@googlegroups.com> <20140926113016.3f6a7628@rg.highlandtechnology.com> |
| Subject | Re: "Fuzzy" Counter? |
| Date | 2014-09-26 15:10 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14404.1411758648.18130.python-list@python.org> (permalink) |
On Fri, Sep 26, 2014, at 14:30, Rob Gaddi wrote: > The "histogram" bin solution that everyone keeps trying to steer you > towards is almost certainly what you really want. Epsilon is your > resolution. You cannot resolve any information below your resolution > limit. Yes, 1.49 and 1.51 wind up in different bins, whereas 1.51 and > 2.49 are in the same one, but that's what it means to have a resolution > of 1; you can't say anything about whether any given count in the "2, > plus or minus a bit" bin is very nearly 1 or very nearly 3. You could "antialias" the values, though. 1.49 results in a value that is 51% in the "1" bin, and 49% in the "2" bin. count[1] += 0.51, count[2] += 0.49. You could even spread each value across a larger number of smaller bins.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Fuzzy" Counter? Miki Tebeka <miki.tebeka@gmail.com> - 2014-09-23 05:34 -0700
Re: "Fuzzy" Counter? Peter Otten <__peter__@web.de> - 2014-09-23 15:36 +0200
Re: "Fuzzy" Counter? Miki Tebeka <miki.tebeka@gmail.com> - 2014-09-23 21:57 -0700
Re: "Fuzzy" Counter? random832@fastmail.us - 2014-09-26 13:57 -0400
Re: "Fuzzy" Counter? Tim Chase <python.list@tim.thechases.com> - 2014-09-23 08:42 -0500
Re: "Fuzzy" Counter? Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-09-23 09:32 -0700
Re: "Fuzzy" Counter? Chris Angelico <rosuav@gmail.com> - 2014-09-24 02:41 +1000
Re: "Fuzzy" Counter? Miki Tebeka <miki.tebeka@gmail.com> - 2014-09-23 22:01 -0700
Re: "Fuzzy" Counter? Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-24 08:56 -0600
Re: "Fuzzy" Counter? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-26 16:45 +1000
Re: "Fuzzy" Counter? Miki Tebeka <miki.tebeka@gmail.com> - 2014-09-26 01:23 -0700
Re: "Fuzzy" Counter? Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-09-26 11:30 -0700
Re: "Fuzzy" Counter? random832@fastmail.us - 2014-09-26 15:10 -0400
Re: "Fuzzy" Counter? Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-09-26 12:36 -0700
Re: "Fuzzy" Counter? Ethan Furman <ethan@stoneleaf.us> - 2014-09-26 09:20 -0700
csiph-web