com.flaptor.hist4j
Class HistogramNode
- java.lang.Object
-
- com.flaptor.hist4j.HistogramNode
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- HistogramDataNode, HistogramForkNode
public abstract class HistogramNode extends java.lang.Object implements java.io.SerializableA HistogramNode is the building block for the histogram data structure and provides a common inteface for both the data and the fork nodes. This is an abstract class, and it is instantiated as either a fork node or a data node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description HistogramNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract HistogramNodeaddValue(AdaptiveHistogram root, float value)Abstract method for adding a value to the histogramabstract voidapply(com.flaptor.hist4j.AdaptiveHistogram.ValueConversion valueConversion)Abstract method for applying a convertion function to the values stored in the histogramabstract longgetAccumCount(float value)Abstract method for getting the cumulative density function for a given valueabstract longgetCount(float value)Abstract method for getting the number of values stored in the same bucket as a reference valueabstract java.lang.FloatgetValueForAccumCount(long[] accumCount)Abstract method for getting the value for which the cumulative density function reaches the desired valueabstract voidreset()Abstract method for clearing the nodeabstract voidshow(int level)Abstract method for showing the data structureabstract voidtoTable(java.util.ArrayList<Cell> table)Abstract method for getting a table representing the histogram data
-
-
-
Method Detail
-
reset
public abstract void reset()
Abstract method for clearing the node
-
addValue
public abstract HistogramNode addValue(AdaptiveHistogram root, float value)
Abstract method for adding a value to the histogram
-
getCount
public abstract long getCount(float value)
Abstract method for getting the number of values stored in the same bucket as a reference value
-
getAccumCount
public abstract long getAccumCount(float value)
Abstract method for getting the cumulative density function for a given value
-
getValueForAccumCount
public abstract java.lang.Float getValueForAccumCount(long[] accumCount)
Abstract method for getting the value for which the cumulative density function reaches the desired value
-
apply
public abstract void apply(com.flaptor.hist4j.AdaptiveHistogram.ValueConversion valueConversion)
Abstract method for applying a convertion function to the values stored in the histogram
-
toTable
public abstract void toTable(java.util.ArrayList<Cell> table)
Abstract method for getting a table representing the histogram data
-
show
public abstract void show(int level)
Abstract method for showing the data structure
-
-
DMelt 3.0 © DataMelt by jWork.ORG