My curiosity pushed me into figuring out how the built-in statistical functions were implemented (e.g. average and standardDeviation)
And then I got a bit carried away, and started implementing the functions which I had implemented in pure LiveCode earlier:
- averageDeviation (with shorthand: avgDev)
- geometricMean
- harmonicMean
- populationStandardDeviation (with shorthand: pStdDev)
- average -> arithmeticMean, mean
- standardDeviation -> sampleStandardDeviation, sStdDev
What do you think - worthy of inclusion in LiveCode?
If so, I'll do some final tweaks for the error messages and submit a pull request?
Cheers,
Jan Schenkel.