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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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.