Data::EventStream::Statistics::Continuous - calculate basic parameters of process
This document describes Data::EventStream::Statistics::Continuous version 0.13
use Data::EventStream::Statistics::Continuous; my $stat = Data::EventStream::Statistics::Continuous->new( value_sub => \&event_value, time_sub => \&event_time, ); $ev_stream->add_aggregator($stat, %params);
Module implements aggregator that calculates basic descriptive parameters of the process defined by the set of events fitting in aggregator's window.
Create a new aggregator. Requires value_sub and time_sub parameters which define subroutines that return numeric value and time for an event accordingly.
Return number of events in aggregator's window
Interval covered by aggregator's window
Integral time-weighted value of the process on the interval
Average value of the process on the interval
Difference between end value and entry value of the process on the interval
See description of the following methods in the documentation for Data::EventStream::Aggregator.
To install Data::EventStream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::EventStream
CPAN shell
perl -MCPAN -e shell install Data::EventStream
For more information on module installation, please visit the detailed CPAN module installation guide.