org.ow2.clif.analyze.statistics.util.data
Class Bucket

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.util.data.Bucket

public class Bucket
extends java.lang.Object

Bucket class stores the number of values (count) in a range defined by minThreshold (included) and maxThreshold (excluded). This object is used by LongStatistics to create an ArrayList of Bucket objects during frequency analysis.

Author:
Xavier Spengler, Guy Vachet

Constructor Summary
Bucket(int count, long minThreshold, long maxThreshold)
           
Bucket(int count, long minTld, long maxTld, long median)
           
 
Method Summary
 int getCount()
           
 long getMaxThreshold()
           
 long getMedian()
           
 long getMinThreshold()
           
 void setMedian(long median)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket

public Bucket(int count,
              long minThreshold,
              long maxThreshold)

Bucket

public Bucket(int count,
              long minTld,
              long maxTld,
              long median)
Method Detail

getCount

public int getCount()

getMinThreshold

public long getMinThreshold()

getMaxThreshold

public long getMaxThreshold()

setMedian

public void setMedian(long median)

getMedian

public long getMedian()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object