public class Histogram
extends java.lang.Object
Constructor and Description |
---|
Histogram(double x0,
double delx,
int nx)
Creates a histogram.
|
Modifier and Type | Method and Description |
---|---|
void |
enter(double xin)
Enters xin in the appropriate bin with weight 1.
|
void |
enter(double xin,
double weight)
Enters xin in the appropriate bin with a user-defined weight.
|
double |
getBinSize() |
double[] |
getContents() |
double |
getContentsAt(int i) |
double |
getLowerBoundary() |
int |
getNumberOfBins() |
double |
getTotalContents() |
void |
setContentsAt(double in,
int i)
Sets the contents of bin number i to the value in
|
public Histogram(double x0, double delx, int nx)
x0
- lower boundary of histogramdelx
- bin sizenx
- number of binspublic void enter(double xin, double weight)
public void enter(double xin)
public double getLowerBoundary()
public double getBinSize()
public int getNumberOfBins()
public double[] getContents()
public double getTotalContents()
public double getContentsAt(int i)
public void setContentsAt(double in, int i)