On 8/4/19 11:49 AM, Ralph DiMola via use-livecode wrote:
I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was easy
to normalize these numbers from 0 to 100. But as I look at the results I see
that there is one at to top(100) and a few in the 90s and many more in the
70s and 80s. I need to make these numbers more evenly distributed and
weighted towards the top(so the top few are 100) based on the current
distribution of the raw numbers. I'm not a math whiz and not afraid to admit
that going beyond linier equations is way over my head. From some searches I
see the some sort of nonlinear regression is in order(I think)? Or a apply a
log (like an audio log taper of a potentiometer)? I don't know... Can anyone
point me in the in the right direction?

Someone will no doubt correct me on this, but it sounds like you want the weighted mean of the data set. Something like

repeat for each value in the list
  add (the value / the number of values) to tWeightedMean
end repeat


--
 Mark Wieder
 ahsoftw...@gmail.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to