public class FloatHistogram1D extends Object implements FloatIHistogram1D
OVERFLOW, UNDERFLOW| Constructor and Description |
|---|
FloatHistogram1D(String title,
float[] edges)
Creates a variable-width histogram.
|
FloatHistogram1D(String title,
FloatIAxis axis)
Creates a histogram with the given axis binning.
|
FloatHistogram1D(String title,
int bins,
float min,
float 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).
|
float |
binError(int index)
The error on this bin.
|
float |
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.
|
float |
equivalentBinEntries()
Number of equivalent entries.
|
int |
extraEntries()
Number of under and overflow entries in the histogram.
|
void |
fill_2D(float[] data,
float[] weights,
int rows,
int columns,
int zero,
int rowStride,
int columnStride)
Fill histogram with specified data and weights.
|
void |
fill_2D(float[] data,
int rows,
int columns,
int zero,
int rowStride,
int columnStride)
Fill histogram with specified data and weight 1.
|
void |
fill(float x)
Fill histogram with weight 1.
|
void |
fill(float x,
float weight)
Fill histogram with specified weight.
|
FloatHistogram1DContents |
getContents()
Returns the contents of this histogram.
|
float |
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.
|
float |
rms()
Returns the rms of the whole histogram as calculated on filling-time.
|
void |
setContents(FloatHistogram1DContents contents)
Sets the contents of this histogram
|
float |
sumAllBinHeights()
Sum of all (both in-range and under/overflow) bin heights in the
histogram.
|
float |
sumBinHeights()
Sum of in-range bin heights in the histogram.
|
float |
sumExtraBinHeights()
Sum of under/overflow bin heights in the histogram.
|
String |
title()
Title of the histogram (will be set only in the constructor).
|
FloatIAxis |
xAxis()
Returns the X Axis.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitminMaxBins, xAxisdimensions, entries, extraEntries, sumAllBinHeights, sumBinHeights, sumExtraBinHeights, titlepublic FloatHistogram1D(String title, float[] edges)
title - The histogram title.edges - the bin boundaries the axis shall have; must be sorted
ascending and must not contain multiple identical elements.IllegalArgumentException - if edges.length < 1.public FloatHistogram1D(String title, FloatIAxis axis)
title - The histogram title.axis - The axis description to be used for binning.public FloatHistogram1D(String title, int bins, float min, float 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 int allEntries()
FloatIHistogramallEntries in interface FloatIHistogrampublic int binEntries(int index)
FloatIHistogram1DbinEntries in interface FloatIHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float binError(int index)
FloatIHistogram1DbinError in interface FloatIHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float binHeight(int index)
FloatIHistogram1DbinHeight in interface FloatIHistogram1Dindex - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float equivalentBinEntries()
FloatIHistogramequivalentBinEntries in interface FloatIHistogrampublic void fill(float x)
FloatIHistogram1Dfill in interface FloatIHistogram1Dpublic void fill(float x,
float weight)
FloatIHistogram1Dfill in interface FloatIHistogram1Dpublic void fill_2D(float[] data,
int rows,
int columns,
int zero,
int rowStride,
int columnStride)
FloatIHistogram1Dfill_2D in interface FloatIHistogram1Dpublic void fill_2D(float[] data,
float[] weights,
int rows,
int columns,
int zero,
int rowStride,
int columnStride)
FloatIHistogram1Dfill_2D in interface FloatIHistogram1Dpublic FloatHistogram1DContents getContents()
public float mean()
FloatIHistogram1Dmean in interface FloatIHistogram1Dpublic void reset()
FloatIHistogramreset in interface FloatIHistogrampublic float rms()
FloatIHistogram1Drms in interface FloatIHistogram1Dpublic void setContents(FloatHistogram1DContents contents)
contents - public int dimensions()
FloatIHistogramdimensions in interface FloatIHistogrampublic int entries()
FloatIHistogramentries in interface FloatIHistogrampublic int extraEntries()
FloatIHistogramextraEntries in interface FloatIHistogrampublic int[] minMaxBins()
FloatIHistogram1DminMaxBins in interface FloatIHistogram1Dpublic float sumAllBinHeights()
FloatIHistogramsumAllBinHeights in interface FloatIHistogrampublic float sumBinHeights()
FloatIHistogramsumBinHeights in interface FloatIHistogrampublic float sumExtraBinHeights()
FloatIHistogramsumExtraBinHeights in interface FloatIHistogrampublic FloatIAxis xAxis()
FloatIHistogram1DxAxis in interface FloatIHistogram1Dpublic String title()
FloatIHistogramtitle in interface FloatIHistogramJump to the Parallel Colt Homepage