App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.analytics.process._ExponentialBinner Class Reference
Inheritance diagram for google.appengine.ext.analytics.process._ExponentialBinner:

Public Member Functions

def __init__
 
def Bin
 
def Intervals
 

Public Attributes

 start
 
 exponent
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

def google.appengine.ext.analytics.process._ExponentialBinner.Bin (   self,
  data 
)
Compute counts of data items in various bins.

Args:
  data: sorted list of integer or long data items.
Returns:
  A list, with each element being count of data items in each bin
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.

The documentation for this class was generated from the following file: