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 voidaddData(double... data)Recompute the statistic with more data, incrementally if possible.longN()Get the size of the sample.StringtoString()doublevalue()Get the value of the statistic.
-
-
-
Constructor Detail
-
Min
public Min()
Construct an emptyMincalculator.
-
Min
public Min(double[] data)
Construct aMincalculator, initialized with a sample.- Parameters:
data- a sample
-
Min
public Min(Min that)
Copy constructor.- Parameters:
that- aMincalculator
-
-
Method Detail
-
addData
public void addData(double... data)
Description copied from interface:StatisticRecompute the statistic with more data, incrementally if possible.
-
value
public double value()
Description copied from interface:StatisticGet the value of the statistic.
-
N
public long N()
Description copied from interface:StatisticGet the size of the sample.
-
-