Package dev.nm.stat.descriptive.rank
Class Min
- java.lang.Object
-
- dev.nm.stat.descriptive.rank.Min
-
- All Implemented Interfaces:
Statistic
public class Min extends Object implements Statistic
The minimum of a sample is the smallest value in the sample. The R equivalent function ismin
.- See Also:
- Wikipedia: Minimum
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addData(double... data)
Recompute the statistic with more data, incrementally if possible.long
N()
Get the size of the sample.String
toString()
double
value()
Get the value of the statistic.
-
-
-
Constructor Detail
-
Min
public Min()
Construct an emptyMin
calculator.
-
Min
public Min(double[] data)
Construct aMin
calculator, initialized with a sample.- Parameters:
data
- a sample
-
Min
public Min(Min that)
Copy constructor.- Parameters:
that
- aMin
calculator
-
-
Method Detail
-
addData
public void addData(double... data)
Description copied from interface:Statistic
Recompute the statistic with more data, incrementally if possible.
-
value
public double value()
Description copied from interface:Statistic
Get the value of the statistic.
-
N
public long N()
Description copied from interface:Statistic
Get the size of the sample.
-
-