public class MeanVarianceMinMax extends MeanVariance
Modifier and Type | Field and Description |
---|---|
(package private) double |
max
Maximum value
|
(package private) double |
min
Minimum value
|
m2
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
|
MeanVarianceMinMax |
put(double[] vals)
Add values with weight 1.0
|
MeanVariance |
put(double[] vals,
double[] weights)
Add values 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.
|
java.lang.String |
toString() |
getNaiveStddev, getNaiveVariance, getSampleStddev, getSampleVariance, getSumOfSquares
getCount, getMean, highPrecision, of
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 MeanVarianceMinMax put(double[] vals)
put
in class MeanVariance
vals
- Valuespublic MeanVariance put(double[] vals, double[] weights)
Mean
put
in class MeanVariance
vals
- Valuespublic double getMin()
public double getMax()
public DoubleMinMax getDoubleMinMax()
public double getDiff()
public static MeanVarianceMinMax[] newArray(int dimensionality)
dimensionality
- Dimensionalitypublic java.lang.String toString()
toString
in class MeanVariance
public void reset()
Mean
reset
in class MeanVariance
Copyright © 2019 ELKI Development Team. License information.