Bins data in intervals with exponentially increasing sizes.
Helps with preparation of histograms. E.g., histograms that
plot number of requests within each latency range.
def google.appengine.ext.analytics.process._ExponentialBinner.__init__ |
( |
|
self, |
|
|
|
start, |
|
|
|
exponent |
|
) |
| |
Initialize parameters for histograms.
E.g., start = 10, and exponent = 2 will bin data using intervals
[0, 10], [11, 20], [21, 40], and so on.
Args:
start: upper bound of first interval
exponent: ratio of upper bounds of two consecutive intervals.
def google.appengine.ext.analytics.process._ExponentialBinner.Intervals |
( |
|
self, |
|
|
|
numbins |
|
) |
| |
Returns the upper bounds of intervals under exponential binning.
E.g., if intervals are [0, 10], [11, 20], [21, 40], [41, 80], this
function returns the list [10, 20, 40, 80].
Args:
numbins: Number of bins.
Returns:
A list which contains upper bounds of each interval range.