public abstract class AbstractBinCalculation extends java.lang.Object implements BinCalculation
BinCalculation
. It holds the instance variables and method used by each
specific implementation. It allows for a storeless computation the number of bins by incrementally updating
summary statistics.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.math3.stat.descriptive.rank.Max |
max
Largest observe value.
|
protected org.apache.commons.math3.stat.descriptive.rank.Min |
min
Smallest observed value.
|
protected double |
n
Sample size.
|
protected org.apache.commons.math3.stat.descriptive.moment.StandardDeviation |
sd
Standard deviation of values.
|
Constructor and Description |
---|
AbstractBinCalculation()
Creates the object and instantiates the min and max objects.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(double[] x) |
void |
increment(double x)
Update the summary statistics with a new value.
|
double |
max()
Gets the largest observed data point.
|
double |
min()
Gets the smallest observed data points.
|
double |
sampleSize()
Gets the sample size.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
binWidth, getType, numberOfBins
protected org.apache.commons.math3.stat.descriptive.rank.Min min
protected org.apache.commons.math3.stat.descriptive.rank.Max max
protected org.apache.commons.math3.stat.descriptive.moment.StandardDeviation sd
protected double n
public AbstractBinCalculation()
public void evaluate(double[] x)
public void increment(double x)
x
- a data value.public double sampleSize()
public double min()
public double max()