|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.stat.HistogramDataSet
public final class HistogramDataSet
In statistics, a histogram is a graphical representation, showing a visual impression of the distribution of data. A histogram consists of tabular frequencies, shown as adjacent rectangles, erected over discrete intervals (bins), with an area equal to the frequency of the observations in the interval. The height of a rectangle is also equal to the frequency density of the interval, i.e., the frequency divided by the width of the interval. The total area of the histogram is equal to the number of data. A histogram may also be normalized displaying relative frequencies. It then shows the proportion of cases that fall into each of several categories, with the total area equaling 1. The categories are usually specified as consecutive, non-overlapping intervals of a variable. The categories (intervals) must be adjacent, and often are chosen to be of the same size.
| Nested Class Summary | |
|---|---|
static class |
HistogramDataSet.Builder
Build a binned peak list with binNumber bins, the bins precision
is deduced. |
static class |
HistogramDataSet.OutOfUpperBoundException
|
| Field Summary | |
|---|---|
static double |
DEFAULT_BIN_WIDTH
default bin width |
static int |
DEFAULT_SMOOTHING_WINDOW_WIDTH
default window width |
| Constructor Summary | |
|---|---|
HistogramDataSet(HistogramDataSet.Builder builder)
Create a binned peak list from a builder. |
|
| Method Summary | |
|---|---|
double |
binWidth()
|
int |
getBinIndex(double value)
Get the index of bin containing the given value. |
static int |
getBinIndex(double value,
Interval interval,
double binWidth)
Get the index of bin containing the given value. |
double[] |
getBins()
|
double |
getBinWidth()
|
int[] |
getBoundIndicesAtBin(int i)
Get bounds indices |
Interval |
getIntervalBinAt(int i)
|
Interval |
getIntervalOfDefinition()
|
IntegerSequence |
getLoadedValuesIndices()
|
double |
getMaxValue()
|
double |
getMinValue()
|
double |
getNormalizedValue()
|
double |
getPpm()
|
double |
getStdError()
|
double[] |
getValues()
|
double[] |
getValuesAtBin(int index)
|
double[] |
getValuesAtInterval(Interval interval)
|
IntegerSequence |
getValuesIndicesAtInterval(Interval interval)
|
double |
getWeighAtBin(int i)
|
double |
getWeighAtInterval(Interval interval)
|
double[] |
getWeights()
|
boolean |
hasBin(double value)
|
boolean |
isDataNormalized()
|
boolean |
isNormalizedSum()
|
int |
size()
|
static HistogramDataSet |
smoothHisto(HistogramDataSet histo)
|
static HistogramDataSet |
smoothHisto(HistogramDataSet histo,
int windowWidth)
A local smoothing by medians, of given window size is applied to the given histogram. |
StatisticalCategory |
toCategory(int i)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static double DEFAULT_BIN_WIDTH
public static int DEFAULT_SMOOTHING_WINDOW_WIDTH
| Constructor Detail |
|---|
public HistogramDataSet(HistogramDataSet.Builder builder)
builder - the builder that provides data.| Method Detail |
|---|
public static HistogramDataSet smoothHisto(HistogramDataSet histo)
public static HistogramDataSet smoothHisto(HistogramDataSet histo,
int windowWidth)
histo - the dataset to convert.windowWidth - the window width.
public Interval getIntervalOfDefinition()
public double getBinWidth()
public double getStdError()
public double getPpm()
public boolean hasBin(double value)
public static int getBinIndex(double value,
Interval interval,
double binWidth)
throws HistogramDataSet.OutOfUpperBoundException
value.
value - the value to look for bin index from.interval - the boundaries.binWidth - the bin width.
HistogramDataSet.OutOfUpperBoundException
public int getBinIndex(double value)
throws HistogramDataSet.OutOfUpperBoundException
value.
value - the value to look for bin index from.
HistogramDataSet.OutOfUpperBoundException
OutOfLowerBoundExceptionpublic Interval getIntervalBinAt(int i)
public int[] getBoundIndicesAtBin(int i)
i -
public IntegerSequence getValuesIndicesAtInterval(Interval interval)
public double[] getValues()
public IntegerSequence getLoadedValuesIndices()
public double getMinValue()
public double getMaxValue()
public double[] getValuesAtBin(int index)
public double[] getValuesAtInterval(Interval interval)
public double getWeighAtBin(int i)
public double getWeighAtInterval(Interval interval)
public double[] getWeights()
public double[] getBins()
public double getNormalizedValue()
public boolean isNormalizedSum()
public boolean isDataNormalized()
public int size()
public double binWidth()
public StatisticalCategory toCategory(int i)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||