public class DoubleHistogram2D extends Object implements DoubleIHistogram2D
OVERFLOW, UNDERFLOW| Constructor and Description |
|---|
DoubleHistogram2D(String title,
double[] xEdges,
double[] yEdges)
Creates a variable-width histogram.
|
DoubleHistogram2D(String title,
DoubleIAxis xAxis,
DoubleIAxis yAxis)
Creates a histogram with the given axis binning.
|
DoubleHistogram2D(String title,
int xBins,
double xMin,
double xMax,
int yBins,
double yMin,
double yMax)
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 indexX,
int indexY)
The number of entries (ie the number of times fill was called for this
bin).
|
int |
binEntriesX(int indexX)
Equivalent to projectionX().binEntries(indexX).
|
int |
binEntriesY(int indexY)
Equivalent to projectionY().binEntries(indexY).
|
double |
binError(int indexX,
int indexY)
The error on this bin.
|
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin (ie the sum of the weights in this
bin).
|
double |
binHeightX(int indexX)
Equivalent to projectionX().binHeight(indexX).
|
double |
binHeightY(int indexY)
Equivalent to projectionY().binHeight(indexY).
|
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,
double y)
Fill the histogram with weight 1.
|
void |
fill(double x,
double y,
double weight)
Fill the histogram with specified weight.
|
double |
meanX()
Returns the mean of the histogram, as calculated on filling-time
projected on the X axis.
|
double |
meanY()
Returns the mean of the histogram, as calculated on filling-time
projected on the Y axis.
|
int[] |
minMaxBins()
Indexes of the in-range bins containing the smallest and largest
binHeight(), respectively.
|
DoubleIHistogram1D |
projectionX()
Create a projection parallel to the X axis.
|
DoubleIHistogram1D |
projectionY()
Create a projection parallel to the Y axis.
|
void |
reset()
Reset contents; as if just constructed.
|
double |
rmsX()
Returns the rms of the histogram as calculated on filling-time projected
on the X axis.
|
double |
rmsY()
Returns the rms of the histogram as calculated on filling-time projected
on the Y axis.
|
DoubleIHistogram1D |
sliceX(int indexY)
Slice parallel to the Y axis at bin indexY and one bin wide.
|
DoubleIHistogram1D |
sliceX(int indexY1,
int indexY2)
Create a slice parallel to the axis X axis, between "indexY1" and
"indexY2" (inclusive).
|
DoubleIHistogram1D |
sliceY(int indexX)
Slice parallel to the X axis at bin indexX and one bin wide.
|
DoubleIHistogram1D |
sliceY(int indexX1,
int indexX2)
Create a slice parallel to the axis Y axis, between "indexX1" and
"indexX2" (inclusive) The returned IHistogram1D represents an
instantaneous snapshot of the histogram at the time the slice was
created.
|
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.
|
String |
title()
Title of the histogram (will be set only in the constructor).
|
DoubleIAxis |
xAxis()
Return the X axis.
|
DoubleIAxis |
yAxis()
Return the Y axis.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbinEntriesX, binEntriesY, binHeightX, binHeightY, minMaxBins, projectionX, projectionY, sliceX, sliceX, sliceY, sliceY, xAxis, yAxisdimensions, entries, extraEntries, sumBinHeights, sumExtraBinHeights, titlepublic DoubleHistogram2D(String title, double[] xEdges, double[] yEdges)
title - The histogram title.xEdges - the bin boundaries the x-axis shall have; must be sorted
ascending and must not contain multiple identical elements.yEdges - the bin boundaries the y-axis shall have; must be sorted
ascending and must not contain multiple identical elements.IllegalArgumentException - if xEdges.length < 1 || yEdges.length < 1.public DoubleHistogram2D(String title, int xBins, double xMin, double xMax, int yBins, double yMin, double yMax)
title - The histogram title.xBins - The number of bins on the X axis.xMin - The minimum value on the X axis.xMax - The maximum value on the X axis.yBins - The number of bins on the Y axis.yMin - The minimum value on the Y axis.yMax - The maximum value on the Y axis.public DoubleHistogram2D(String title, DoubleIAxis xAxis, DoubleIAxis yAxis)
title - The histogram title.xAxis - The x-axis description to be used for binning.yAxis - The y-axis description to be used for binning.public int allEntries()
DoubleIHistogramallEntries in interface DoubleIHistogrampublic int binEntries(int indexX,
int indexY)
DoubleIHistogram2DbinEntries in interface DoubleIHistogram2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double binError(int indexX,
int indexY)
DoubleIHistogram2DbinError in interface DoubleIHistogram2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double binHeight(int indexX,
int indexY)
DoubleIHistogram2DbinHeight in interface DoubleIHistogram2DindexX - the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY - the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double equivalentBinEntries()
DoubleIHistogramequivalentBinEntries in interface DoubleIHistogrampublic void fill(double x,
double y)
DoubleIHistogram2Dfill in interface DoubleIHistogram2Dpublic void fill(double x,
double y,
double weight)
DoubleIHistogram2Dfill in interface DoubleIHistogram2Dpublic double meanX()
DoubleIHistogram2DmeanX in interface DoubleIHistogram2Dpublic double meanY()
DoubleIHistogram2DmeanY in interface DoubleIHistogram2Dpublic void reset()
DoubleIHistogramreset in interface DoubleIHistogrampublic double rmsX()
DoubleIHistogram2DrmsX in interface DoubleIHistogram2Dpublic double rmsY()
DoubleIHistogram2DrmsY in interface DoubleIHistogram2Dpublic double sumAllBinHeights()
DoubleIHistogramsumAllBinHeights in interface DoubleIHistogrampublic int binEntriesX(int indexX)
DoubleIHistogram2DbinEntriesX in interface DoubleIHistogram2Dpublic int binEntriesY(int indexY)
DoubleIHistogram2DbinEntriesY in interface DoubleIHistogram2Dpublic double binHeightX(int indexX)
DoubleIHistogram2DbinHeightX in interface DoubleIHistogram2Dpublic double binHeightY(int indexY)
DoubleIHistogram2DbinHeightY in interface DoubleIHistogram2Dpublic int dimensions()
DoubleIHistogramdimensions in interface DoubleIHistogrampublic int entries()
DoubleIHistogramentries in interface DoubleIHistogrampublic int extraEntries()
DoubleIHistogramextraEntries in interface DoubleIHistogrampublic int[] minMaxBins()
DoubleIHistogram2DminMaxBins in interface DoubleIHistogram2Dpublic DoubleIHistogram1D projectionX()
DoubleIHistogram2DprojectionX in interface DoubleIHistogram2Dpublic DoubleIHistogram1D projectionY()
DoubleIHistogram2DprojectionY in interface DoubleIHistogram2Dpublic DoubleIHistogram1D sliceX(int indexY)
DoubleIHistogram2DsliceX in interface DoubleIHistogram2Dpublic DoubleIHistogram1D sliceX(int indexY1, int indexY2)
DoubleIHistogram2DsliceX in interface DoubleIHistogram2Dpublic DoubleIHistogram1D sliceY(int indexX)
DoubleIHistogram2DsliceY in interface DoubleIHistogram2Dpublic DoubleIHistogram1D sliceY(int indexX1, int indexX2)
DoubleIHistogram2DsliceY in interface DoubleIHistogram2Dpublic double sumBinHeights()
DoubleIHistogramsumBinHeights in interface DoubleIHistogrampublic double sumExtraBinHeights()
DoubleIHistogramsumExtraBinHeights in interface DoubleIHistogrampublic DoubleIAxis xAxis()
DoubleIHistogram2DxAxis in interface DoubleIHistogram2Dpublic DoubleIAxis yAxis()
DoubleIHistogram2DyAxis in interface DoubleIHistogram2Dpublic String title()
DoubleIHistogramtitle in interface DoubleIHistogramJump to the Parallel Colt Homepage