Package dev.nm.stat.descriptive.rank
Class Max
- java.lang.Object
-
- dev.nm.stat.descriptive.rank.Max
-
- All Implemented Interfaces:
Statistic
public class Max extends Object implements Statistic
The maximum of a sample is the biggest value in the sample. The R equivalent function ismax.- See Also:
- Wikipedia: Maximum
-
-
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
-
Max
public Max()
Construct an emptyMaxcalculator.
-
Max
public Max(double[] data)
Construct aMaxcalculator, initialized with a sample.- Parameters:
data- a sample
-
Max
public Max(Max that)
Copy constructor.- Parameters:
that- aMaxcalculator
-
-
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.
-
-