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, wait
minMaxBins, xAxis
dimensions, entries, extraEntries, sumAllBinHeights, sumBinHeights, sumExtraBinHeights, title
public 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()
FloatIHistogram
allEntries
in interface FloatIHistogram
public int binEntries(int index)
FloatIHistogram1D
binEntries
in interface FloatIHistogram1D
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float binError(int index)
FloatIHistogram1D
binError
in interface FloatIHistogram1D
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float binHeight(int index)
FloatIHistogram1D
binHeight
in interface FloatIHistogram1D
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public float equivalentBinEntries()
FloatIHistogram
equivalentBinEntries
in interface FloatIHistogram
public void fill(float x)
FloatIHistogram1D
fill
in interface FloatIHistogram1D
public void fill(float x, float weight)
FloatIHistogram1D
fill
in interface FloatIHistogram1D
public void fill_2D(float[] data, int rows, int columns, int zero, int rowStride, int columnStride)
FloatIHistogram1D
fill_2D
in interface FloatIHistogram1D
public void fill_2D(float[] data, float[] weights, int rows, int columns, int zero, int rowStride, int columnStride)
FloatIHistogram1D
fill_2D
in interface FloatIHistogram1D
public FloatHistogram1DContents getContents()
public float mean()
FloatIHistogram1D
mean
in interface FloatIHistogram1D
public void reset()
FloatIHistogram
reset
in interface FloatIHistogram
public float rms()
FloatIHistogram1D
rms
in interface FloatIHistogram1D
public void setContents(FloatHistogram1DContents contents)
contents
- public int dimensions()
FloatIHistogram
dimensions
in interface FloatIHistogram
public int entries()
FloatIHistogram
entries
in interface FloatIHistogram
public int extraEntries()
FloatIHistogram
extraEntries
in interface FloatIHistogram
public int[] minMaxBins()
FloatIHistogram1D
minMaxBins
in interface FloatIHistogram1D
public float sumAllBinHeights()
FloatIHistogram
sumAllBinHeights
in interface FloatIHistogram
public float sumBinHeights()
FloatIHistogram
sumBinHeights
in interface FloatIHistogram
public float sumExtraBinHeights()
FloatIHistogram
sumExtraBinHeights
in interface FloatIHistogram
public FloatIAxis xAxis()
FloatIHistogram1D
xAxis
in interface FloatIHistogram1D
public String title()
FloatIHistogram
title
in interface FloatIHistogram
Jump to the Parallel Colt Homepage