PHP Classes

Efficiency - meansdev package blog

Recommend this page to a friend!
  All package blogs All package blogs   meansdev meansdev   Blog meansdev package blog   RSS 1.0 feed RSS 2.0 feed   Blog Efficiency  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Package: meansdev

The meansdev class not only simplifies statistical algorithms, but also promises important savings in memory use.




Loaded Article

Very many authors of statistical algorithms calculate standard deviations and variances in procedural code rather than using an object-oriented solution. Typically, they follow the technique of building arrays of squares for each data pair.

In fact, this is unnecessary and wasteful of storage, as all the values needed to calculate standard deviations and variances can be calculated "on the fly" without any need for arrays; this has the added benefit that the storage requirement is independent of the sample size (i.e. the number of data pairs).

I hope to provide a working example to demonstrate how a more complex statistical class can be simplified, clarified and made much more efficient by making use of the meansdev class.






You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

No comments were submitted yet.




  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   meansdev meansdev   Blog meansdev package blog   RSS 1.0 feed RSS 2.0 feed   Blog Efficiency