Skip to content

ArslanSaleem/Statistics-on-Streaming-Data-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Statistics

Prerequisites Libraries

1- boost

Usage

Calculate stats on Streaming data 1- Mean 2- Variance 3- Standard Deviation

Example Usage:

RunningStatsCalculator running = RunningStatsCalculator();
	running.update(1);
	running.update(2);
	running.update(3);

	cout<<"running mean = "<< running.mean()<<"\n";
	cout<<"running pop variance = "<< running.populationVariance()<<"\n";
	cout<<"running pop stdev = "<< running.populationStdev()<<"\n";
	cout<<"running sample variance = "<< running.sampleVariance()<<"\n";
	cout<<"running sample stdev = "<< running.sampleStdev()<<"\n";

To Calculate on Window based Streaming data Use RunningWindowStatsCalculator(windowSize)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages