com.quadrique.jbuildingblocks.core.dataStructure
Class JbbHistogramBucket<V>
java.lang.Object
com.quadrique.jbuildingblocks.core.dataStructure.JbbHistogramBucket<V>
public class JbbHistogramBucket<V>
- extends Object
A simple data structure that represents a bucket in a histogram: a bucket is a value
and the corresponding number of occurences
JbbHistogramBucket
public JbbHistogramBucket()
toString
public String toString()
- Overrides:
toString in class Object
getNbOfOccurences
public long getNbOfOccurences()
- Returns:
- Returns the nbOfOccurences.
setNbOfOccurences
public void setNbOfOccurences(long nbOfOccurences)
- Parameters:
nbOfOccurences - The nbOfOccurences to set.
getValue
public V getValue()
- Returns:
- Returns the value.
setValue
public void setValue(V value)
- Parameters:
value - The value to set.
Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.