|
From: | Friedrich Beckmann |
Subject: | Re: [bug #47139] EXAMINE plot histogram does wrong binning |
Date: | Tue, 16 Feb 2016 10:09:19 +0100 |
Hi John, i tested your example on git version 19e56b3221e1008ad4 and see the following plot: Which seems to me o.k. If you count in your example all bins, is the sum 10? That is the first problem. That should be fixed with the mentioned commit. In these tests the case values are very close or at the bin limits. So it could be that a case goes in the one or the other bin due to numerical rounding when computing the bin limits. See my comments to your fix below
This fix would always add a bin because adjusted_max should always be bigger or equal to max. But maybe it is an idea to make sure that adjusted_max is always > max. Then the gsl_histogram binning would always consider the cases where value is max.
|
signature.asc
Description: Message signed with OpenPGP using GPGMail
[Prev in Thread] | Current Thread | [Next in Thread] |