Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78390

Re: "Fuzzy" Counter?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.052
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'received:internal': 0.09; 'limit.': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'minus': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'spread': 0.22; 'certainly': 0.24; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'resolution': 0.29; 'towards': 0.31; 'sep': 0.31; 'though.': 0.31; 'wind': 0.31; 'everyone': 0.33; 'fri,': 0.33; 'could': 0.34; 'received:66': 0.35; "can't": 0.35; 'one,': 0.35; 'but': 0.35; 'really': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'anything': 0.39; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'from:no real name:2**0': 0.61; 'header:Message- Id:1': 0.63; 'information': 0.63; 'different': 0.65; '26,': 0.68; 'results': 0.69; '2014,': 0.84; 'whereas': 0.91
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=pClxj29IkrKmQVvtAIUlpO4HLqA=; b=G6U8 RKnH4cp5xKajGQ2sovO82pD6sqONnMFDblx4JgFoXKGBURfOZWYuwpheNEWQkKtv IQ7aJazOfkfx0P5jIpR7AHdlYFa9olNTncyLJL7V4+2t0N47LOFINoUouRlZsURl weQvubRUrIIeYUfAqjBkQredgEQJdS1p6xGOo4U=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=pClxj29IkrKmQVvtAIUlpO4H LqA=; b=gybZWYpkFGkQUeTkMCQjOg5DrSF7JUfbtJRtRC+VQdRjI64GiN9iMhG4 9tSH/zMYbdn4c0btZY+rnyDsxdpp6pQybBwoSpbd5taPgsO+PAussqIjz4KEJP8v dBXwnQm+wavs+WvwQqtslxbvCcqbtxhextLJABxiEOyHLTl+AIo=
X-Sasl-Enc Zf2BgKSZ76GQTU1w83fgjjwlwpk0PTAT+kT+zoGIAoUU 1411758643
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-cad53418
In-Reply-To <20140926113016.3f6a7628@rg.highlandtechnology.com>
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 Fri, 26 Sep 2014 15:10:43 -0400
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14404.1411758648.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411758648 news.xs4all.nl 2933 [2001:888:2000:d::a6]:42553
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78390

Show key headers only | View raw


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


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