public class Histogram1D extends java.lang.Object implements IHistogram1D
OVERFLOW, serialVersionUID, UNDERFLOW| Constructor and Description |
|---|
Histogram1D(java.lang.String title,
double[] edges)
Creates a variable-width histogram.
|
Histogram1D(java.lang.String title,
IAxis axis)
Creates a histogram with the given axis binning.
|
Histogram1D(java.lang.String title,
int bins,
double min,
double max)
Creates a fixed-width histogram.
|
| Modifier and Type | Method and Description |
|---|---|
int |
allEntries()
Number of all entries in all (both in-range and under/overflow) bins in the histogram.
|
int |
binEntries(int index)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin).
|
double |
binError(int index)
The error on this bin.
|
double |
binHeight(int index)
Total height of the corresponding bin (ie the sum of the weights in this bin).
|
int |
dimensions()
Returns 1 for one-dimensional histograms, 2 for two-dimensional histograms, and so on.
|
int |
entries()
Number of in-range entries in the histogram.
|
double |
equivalentBinEntries()
Number of equivalent entries.
|
int |
extraEntries()
Number of under and overflow entries in the histogram.
|
void |
fill(double x)
Fill histogram with weight 1.
|
void |
fill(double x,
double weight)
Fill histogram with specified weight.
|
double |
mean()
Returns the mean of the whole histogram as calculated on filling-time.
|
int[] |
minMaxBins()
Indexes of the in-range bins containing the smallest and largest binHeight(), respectively.
|
void |
reset()
Reset contents; as if just constructed.
|
double |
rms()
Returns the rms of the whole histogram as calculated on filling-time.
|
double |
sumAllBinHeights()
Sum of all (both in-range and under/overflow) bin heights in the histogram.
|
double |
sumBinHeights()
Sum of in-range bin heights in the histogram.
|
double |
sumExtraBinHeights()
Sum of under/overflow bin heights in the histogram.
|
java.lang.String |
title()
Title of the histogram (will be set only in the constructor).
|
IAxis |
xAxis()
Returns the X Axis.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitminMaxBins, xAxisdimensions, entries, extraEntries, sumAllBinHeights, sumBinHeights, sumExtraBinHeights, titlepublic Histogram1D(java.lang.String title,
double[] edges)
title - The histogram title.edges - the bin boundaries the axis shall have;
must be sorted ascending and must not contain multiple identical elements.java.lang.IllegalArgumentException - if edges.length < 1.public Histogram1D(java.lang.String title,
int bins,
double min,
double max)
title - The histogram title.bins - The number of bins.min - The minimum value on the X axis.max - The maximum value on the X axis.public Histogram1D(java.lang.String title,
IAxis axis)
title - The histogram title.axis - The axis description to be used for binning.public int allEntries()
IHistogramallEntries in interface IHistogrampublic int binEntries(int index)
IHistogram1DbinEntries in interface IHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binError(int index)
IHistogram1DbinError in interface IHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binHeight(int index)
IHistogram1DbinHeight in interface IHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double equivalentBinEntries()
IHistogramequivalentBinEntries in interface IHistogrampublic void fill(double x)
IHistogram1Dfill in interface IHistogram1Dpublic void fill(double x,
double weight)
IHistogram1Dfill in interface IHistogram1Dpublic double mean()
IHistogram1Dmean in interface IHistogram1Dpublic void reset()
IHistogramreset in interface IHistogrampublic double rms()
IHistogram1Drms in interface IHistogram1Dpublic int dimensions()
IHistogramdimensions in interface IHistogrampublic int entries()
IHistogramentries in interface IHistogrampublic int extraEntries()
IHistogramextraEntries in interface IHistogrampublic int[] minMaxBins()
IHistogram1DminMaxBins in interface IHistogram1Dpublic double sumAllBinHeights()
IHistogramsumAllBinHeights in interface IHistogrampublic double sumBinHeights()
IHistogramsumBinHeights in interface IHistogrampublic double sumExtraBinHeights()
IHistogramsumExtraBinHeights in interface IHistogrampublic IAxis xAxis()
IHistogram1DxAxis in interface IHistogram1Dpublic java.lang.String title()
IHistogramtitle in interface IHistogramJump to the Colt Homepage