public final class AutoHistogram
extends java.lang.Object
Map<Double,Integer>
going from value to number observed. Also for
each bin, we keep track of a running mean and variance, which are useful for
identifying continuous bins and total moments. Introduced to support
automatic cadence algorithm, should be generally useful in data discovery.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USER_PROP_BIN_START |
static java.lang.String |
USER_PROP_BIN_WIDTH |
static java.lang.String |
USER_PROP_INVALID_COUNT |
static java.lang.String |
USER_PROP_MIN_GT_ZERO |
static java.lang.String |
USER_PROP_OUTLIERS |
static java.lang.String |
USER_PROP_TOTAL
Long, total number of valid points.
|
Constructor and Description |
---|
AutoHistogram() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
static int |
binOf(QDataSet hist,
double d)
convenient method for getting the bin location of a value from a completed
histogram's metadata.
|
QDataSet |
doit(QDataSet ds) |
QDataSet |
doit(QDataSet ds,
QDataSet wds)
do a histogram, dynamically shifting the bins and changing the bin size.
|
DDataSet |
getHistogram()
get the histogram of the data accumulated thus far.
|
static RankZeroDataSet |
mean(QDataSet hist)
returns the mean of the dataset that has been histogrammed.
|
static RankZeroDataSet |
moments(QDataSet hist)
returns the mean of the dataset that has been histogrammed.
|
QDataSet |
monoExtent(QDataSet dep0)
fast extent only works when monotonic.
|
static QDataSet |
peakIds(QDataSet hist)
return a list of all the peaks in the histogram.
|
static QDataSet |
peaks(QDataSet hist)
return a list of all the peaks in the histogram.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
reset() |
static QDataSet |
simpleRange(QDataSet hist2)
returns the simple range, the min and the max containing the data.
|
public static final java.lang.String USER_PROP_BIN_START
public static final java.lang.String USER_PROP_BIN_WIDTH
public static final java.lang.String USER_PROP_INVALID_COUNT
public static final java.lang.String USER_PROP_OUTLIERS
public static final java.lang.String USER_PROP_MIN_GT_ZERO
public static final java.lang.String USER_PROP_TOTAL
public void reset()
public DDataSet getHistogram()
public static int binOf(QDataSet hist, double d)
hist
- d
- public QDataSet monoExtent(QDataSet dep0)
dep0
- public QDataSet doit(QDataSet ds, QDataSet wds)
Map<Double,Integer>
, outliers and the count of each outlier.ds
- wds
- WeightsDataSet or null.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public static RankZeroDataSet mean(QDataSet hist)
hist
- public static RankZeroDataSet moments(QDataSet hist)
hist
- a rank 1 dataset with each bin containing the count in each bin. DEPEND_0 are the labels for
each bin. The property "means" returns a rank 1 dataset containing the means for each bin. The
property "stddevs" contains the standard deviation within each bin.public static QDataSet simpleRange(QDataSet hist2)
hist2
- the result of autoHistogram.public static QDataSet peakIds(QDataSet hist)
hist
- the output of autohistogram, which has "means" and "stddevs" properties.public static QDataSet peaks(QDataSet hist)
hist
- the result of AutoHistogram