Login   Register  
PHP Classes
elePHPant
Icontem

Efficiency - meansdev package blog

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: CPK Smithies

Posted on:

Package: meansdev

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




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

1,282,297 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

Facebook ConnectGmail or other Google Account
Hotmail or Microsoft Windows LiveStackOverflow
GitHubYahoo


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