|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.flaptor.hist4j.HistogramNode
public abstract class HistogramNode
A 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.
| Constructor Summary | |
|---|---|
HistogramNode()
|
|
| Method Summary | |
|---|---|
abstract HistogramNode |
addValue(AdaptiveHistogram root,
float value)
Abstract method for adding a value to the histogram |
abstract void |
apply(AdaptiveHistogram.ValueConversion valueConversion)
Abstract method for applying a convertion function to the values stored in the histogram |
abstract long |
getAccumCount(float value)
Abstract method for getting the cumulative density function for a given value |
abstract long |
getCount(float value)
Abstract method for getting the number of values stored in the same bucket as a reference value |
abstract java.lang.Float |
getValueForAccumCount(long[] accumCount)
Abstract method for getting the value for which the cumulative density function reaches the desired value |
protected void |
margin(int level)
Prints a margin corresponding to the provided tree level |
abstract void |
reset()
Abstract method for clearing the node |
abstract void |
show(int level)
Abstract method for showing the data structure |
abstract void |
toTable(java.util.ArrayList<Cell> table)
Abstract method for getting a table representing the histogram data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistogramNode()
| Method Detail |
|---|
public abstract void reset()
public abstract HistogramNode addValue(AdaptiveHistogram root,
float value)
public abstract long getCount(float value)
public abstract long getAccumCount(float value)
public abstract java.lang.Float getValueForAccumCount(long[] accumCount)
public abstract void apply(AdaptiveHistogram.ValueConversion valueConversion)
public abstract void toTable(java.util.ArrayList<Cell> table)
public abstract void show(int level)
protected void margin(int level)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||