Re: [Geotools-devel] Quantile classification oddities

2008-05-23 Thread Andrea Aime
Jody Garnett ha scritto: > Andrea Aime wrote: >> Well, since I have a customer that needs this, and there seems to be >> no agreement (or lack of interest) on what to do, I'll roll a custom >> variant of the quantile algorithm inside GeoServer that does what I >> suggested, set apart the flat ar

Re: [Geotools-devel] Quantile classification oddities

2008-05-22 Thread Jody Garnett
That is also an option Andrea; any chance we can come up with unqiue names for these two ideas? ie implement and document them as separate functions... > The first thing I need, is to change the generated rules so that they > all use closed intervals, such as: > 0 <= x <= 10 > 10 < x <= 20 > 20 <

Re: [Geotools-devel] Quantile classification oddities

2008-05-22 Thread Jody Garnett
Andrea Aime wrote: > Well, since I have a customer that needs this, and there seems to be > no agreement (or lack of interest) on what to do, I'll roll a custom > variant of the quantile algorithm inside GeoServer that does what I > suggested, set apart the flat areas of the histogram in their o

Re: [Geotools-devel] Quantile classification oddities

2008-05-22 Thread Andrea Aime
Andrea Aime ha scritto: > Andrea Aime ha scritto: > ... >> Again, not very useful... it's telling you that at the 33% break there >> is a 0, and by applying it, you'd get a class that ends with 0, and >> another that starts with 0. Which is something the layman using >> the application does not und

Re: [Geotools-devel] Quantile classification oddities

2008-05-22 Thread Andrea Aime
Andrea Aime ha scritto: ... > Again, not very useful... it's telling you that at the 33% break there > is a 0, and by applying it, you'd get a class that ends with 0, and > another that starts with 0. Which is something the layman using > the application does not understand, it does not make sense

Re: [Geotools-devel] Quantile classification oddities

2008-05-20 Thread Andrea Aime
Adrian Custer ha scritto: > Hey all, > > Wherein we discover that stats are hard, even for the simple > questions... > > > On Tue, 2008-05-20 at 10:18 +0200, Andrea Aime wrote: >> Jody Garnett ha scritto: >>> What a difficult question; is there a strict definition of the quantile

Re: [Geotools-devel] Quantile classification oddities

2008-05-20 Thread Jody Garnett
Andrea Aime wrote: > Yeah, silly. Unfortunately that's exactly what you're getting today > out of the quantile classification simple. I have cases, with real > data, where the current function generates 3 subsequent intervals at 0. Okay since the stats are not helping us that much let me share wi

Re: [Geotools-devel] Quantile classification oddities

2008-05-20 Thread Jody Garnett
Andrea Aime wrote: > Jody Garnett ha scritto: >> What a difficult question; is there a strict definition of the >> quantile function we could grab from statistics or something? > > I did not find much, and none of what I've found talks about how to > handle flat areas in the data histogram: > htt

Re: [Geotools-devel] Quantile classification oddities

2008-05-20 Thread Adrian Custer
Hey all, Wherein we discover that stats are hard, even for the simple questions... On Tue, 2008-05-20 at 10:18 +0200, Andrea Aime wrote: > Jody Garnett ha scritto: > > What a difficult question; is there a strict definition of the quantile > > function we could grab from statist

Re: [Geotools-devel] Quantile classification oddities

2008-05-20 Thread Andrea Aime
Jody Garnett ha scritto: > What a difficult question; is there a strict definition of the quantile > function we could grab from statistics or something? I did not find much, and none of what I've found talks about how to handle flat areas in the data histogram: http://www.gisbanker.com/introduc

Re: [Geotools-devel] Quantile classification oddities

2008-05-19 Thread Jody Garnett
What a difficult question; is there a strict definition of the quantile function we could grab from statistics or something? Given you example I want to ask: what is more important; the number of classifications, or the fact that they are "even" in size... If we go for even in size; you may get

[Geotools-devel] Quantile classification oddities

2008-05-19 Thread Andrea Aime
Hi, I'm having some troubles using the quantile classification algorithm. As you may know, quantile figures out how to classify a range of numbers in a way that each class has the same number of features in it. Consider a case when an attribute has the following values (in different features): {0