|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Module/Algorithm to reduce data points?by kvale (Monsignor) |
| on Apr 24, 2006 at 18:29 UTC ( #545345=note: print w/ replies, xml ) | Need Help?? |
|
If you simply want to reduce the number of points, use a decimation procedure. For example if you want to eliminate half the points, sort the points on the x or y axis and throw out the odd numbered points, keeping the even points. If your goal is to somehow approximate the curve that these points lie upon, you want to do some sort of regression, that is, create a statistical model of the process generating the points and fit the parameters of the model. An example module that would do this in the linear case is Statistics::Regression. From the synopsis:
-Mark
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||