public class Histogram extends Sample
Constructor and Description |
---|
Histogram(int bins,
double binsize)
Parameter constructor. when base is equal to 0.
|
Histogram(int bins,
double binsize,
double base)
Parameter constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double X)
Add one to the bins summation of th one determinated by the given number
|
java.lang.String |
boxplot()
Return the boxplot (median, lowerquartile, upperquartile, P0.05, P0.95).
|
double |
getBase()
Returns the Base of the histogram.
|
int |
getBin(int i)
Returns the bin summation in the given position.
|
int[] |
getBins()
Returns all the Bins values.
|
double |
getBinsize()
Returns the Histogram Bin size.
|
double[] |
getCummulative()
Returns the cummulative bins.
|
double |
getInterQuartileRange()
Returns the interquartile range.
|
double |
getLowerQuartile()
Returns the lower quartile.
|
double |
getMedian()
Returns the median.
|
double |
getMode()
Returns the mode.
|
int |
getNumBins()
Returns the number of the bins.
|
double |
getPercentile(double p)
Returns percentile value with the percentage given.
|
double |
getUpperQuartile()
Returns the upper quartile.
|
void |
reset()
Resets the statisticals variables.
|
java.lang.String |
summary()
Returns a String summary with all the statistical variables
|
getCoefficientOfVariation, getMax, getMean, getMean, getMean, getMeanSquares, getMin, getRange, getSampleSize, getStandardDeviation, getStandardDeviation, getSum, getSumSquares, getVariance, getVariance
public Histogram(int bins, double binsize, double base)
bins
- number of bins.binsize
- Histogram Bin size.base
- Base of the histogram.public Histogram(int bins, double binsize)
bins
- number of bins.binsize
- Histogram Bin size.public void add(double X)
public int getBin(int i)
i
- position given.public int[] getBins()
public double getBinsize()
public double getBase()
public int getNumBins()
public double[] getCummulative()
public double getPercentile(double p)
p
- percentage given.public double getMedian()
public double getLowerQuartile()
public double getUpperQuartile()
public double getInterQuartileRange()
public double getMode()
public java.lang.String summary()
public java.lang.String boxplot()