public class MeanVarianceMinMax extends MeanVariance
Modifier and Type | Field and Description |
---|---|
(package private) double |
max
Maximum value
|
(package private) double |
min
Minimum value
|
nvar
Constructor and Description |
---|
MeanVarianceMinMax()
Constructor.
|
MeanVarianceMinMax(MeanVarianceMinMax other)
Constructor cloning existing statistics.
|
Modifier and Type | Method and Description |
---|---|
double |
getDiff()
Return the difference between minimum and maximum.
|
DoubleMinMax |
getDoubleMinMax()
Get the current minimum and maximum.
|
double |
getMax()
Get the current maximum.
|
double |
getMin()
Get the current minimum.
|
static MeanVarianceMinMax[] |
newArray(int dimensionality)
Create and initialize a new array of MeanVarianceMinMax
|
void |
put(double val)
Add a single value with weight 1.0
|
void |
put(double val,
double weight)
Add data with a given weight.
|
void |
put(Mean other)
Join the data of another MeanVariance instance.
|
void |
reset()
Reset the value.
|
String |
toString() |
denormalizeValue, getCount, getMean, getNaiveStddev, getNaiveVariance, getSampleStddev, getSampleVariance, normalizeValue
public MeanVarianceMinMax()
public MeanVarianceMinMax(MeanVarianceMinMax other)
other
- Existing statisticspublic void put(double val)
MeanVariance
put
in class MeanVariance
val
- Valuepublic void put(double val, double weight)
MeanVariance
put
in class MeanVariance
val
- dataweight
- weightpublic void put(Mean other)
MeanVariance
put
in class MeanVariance
other
- Data to join withpublic double getMin()
public double getMax()
public DoubleMinMax getDoubleMinMax()
public double getDiff()
public static MeanVarianceMinMax[] newArray(int dimensionality)
dimensionality
- Dimensionalitypublic String toString()
toString
in class MeanVariance
public void reset()
Mean
reset
in class MeanVariance