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
|
MeanVarianceMinMax |
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.
|
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 MeanVarianceMinMax put(double[] vals)
put
in class MeanVariance
vals
- Valuespublic MeanVarianceMinMax 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 String toString()
toString
in class MeanVariance
public void reset()
Mean
reset
in class MeanVariance
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.