Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
like http://search.cpan.org/~nids/Statistics-OnLine-0.02/lib/Statistics/OnLine.pm ?
Online algorithm.sum = 0;count = 0;avg = 0;while( stream not empty ){ sum += next integer; count += 1; avg = sum/count;}Anything that I am missing? :)
like http://search.cpan.org/~nids/Statistics-OnLine-0.02/lib/Statistics/OnLine.pm ?
ReplyDeleteOnline algorithm.
ReplyDeletesum = 0;
count = 0;
avg = 0;
while( stream not empty )
{
sum += next integer;
count += 1;
avg = sum/count;
}
Anything that I am missing? :)