Class Benelux::Stats::Calculator
In: lib/benelux/stats.rb
Parent: Storable

Based on Mongrel::Stats, Copyright (c) 2005 Zed A. Shaw

Methods

+   ==   average   avg   dump   first_tick   inspect   mean   merge!   new   report   reset   sample   samples   sd   tick   to_f   to_i   to_s  

Included Modules

Selectable::Object

Public Class methods

Public Instance methods

Calculates and returns the mean for the data passed so far.

Dump this Stats object with an optional additional message.

NOTE: This is an alias for average. We don‘t store values so we can‘t return the actual mean

Returns a common display (used by dump)

Resets the internal counters so you can start sampling again.

Adds a sampling to the calculations.

Calculates the standard deviation of the data so far.

[Validate]