in reply to Data range detection?
I think I'd try treating the axes separately, and for each, find the scale that would most evenly distribute the data points along the axis.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data range detection?
by BrowserUk (Patriarch) on Apr 13, 2015 at 17:51 UTC | |
think I'd try treating the axes separately I don't see any other way than to treat each set of points independantly? find the scale that would most evenly distribute the data points along the axis. I don't no how to access "most evenly distributed"? The input values may be clumped or unevenly distributed; and whatever scaling you apply, the output values will, mathematically, be proportionally the same. I'm just not seeing how to tackle this at all. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
| [reply] |
by roboticus (Chancellor) on Apr 13, 2015 at 19:07 UTC | |
For evenly distributed, I was meaning choosing the distribution that most evenly spreads out the points. An exponential distribution on a linear axis will bunch everything up to the left, for example. Doing all the work to find out what "evenly distributed" is would be a headache. I hacked something together this morning that worked to select between linear and logarithmic in the number series you provided. To figure out the most "evenly distributed" version, I simply counted the number of points to the left of the midpoint and compared that to the number of points provided, selecting the series where the difference was the smallest. From memory, it went something like:
Update: I mentioned treating the axes separately, because some people were mentioning curve fitting (IIRC) which implied (to me) using both axes at the same time. ...roboticus When your only tool is a hammer, all problems look like your thumb. | [reply] [d/l] |
by roboticus (Chancellor) on Apr 14, 2015 at 11:09 UTC | |
Just for completeness, here's the one I coded up yesterday morning:
There's nothing special about it, as it chooses the distribution that more evenly splits the points over both halves of the interval. So it'll probably choose poorly on the vertical axis of a half-wave rectified sine wave or similar. (I'm guessing that it would choose a log axis instead of linear in that case...) ...roboticus When your only tool is a hammer, all problems look like your thumb. | [reply] [d/l] |