Classes | Static Public Member Functions | Package Functions

alma.acs.algorithms.DataBinner Class Reference

List of all members.

Classes

class  BinnedTimeValues< T extends Comparable< T > >
class  TimeValue< T extends Comparable< T > >

Static Public Member Functions

static long floor (long value, long multipleOf)

Package Functions

public< T extends Comparable
< T > > List< BinnedTimeValues
< T > > 
binTimedData (List< TimeValue< T >> data, int binningIntervalMillis)

Detailed Description

Apache commons math etc do not seem to provide decent binning functionality (except for a possible abuse of class EmpiricalDistributionImpl). That's why we do it here. It's an ad-hoc implementation used for binning various parsed log data in post-mortem debugging. Not yet tested enough for important operational use.


Member Function Documentation

public<T extends Comparable<T> > List<BinnedTimeValues<T> > alma.acs.algorithms.DataBinner.binTimedData ( List< TimeValue< T >>  data,
int  binningIntervalMillis 
) [package]

Distributes the data into binning intervals of equal sizes (binningIntervalMillis).

Parameters:
<T> The type of data associated with a time.
data 
binningIntervalMillis 
Returns:
data mapped to bins.

References alma.acs.algorithms.DataBinner.floor().

static long alma.acs.algorithms.DataBinner.floor ( long  value,
long  multipleOf 
) [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties