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 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
-
Max
public Max()
Construct an emptyMax
calculator.
-
Max
public Max(double[] data)
Construct aMax
calculator, initialized with a sample.- Parameters:
data
- a sample
-
Max
public Max(Max that)
Copy constructor.- Parameters:
that
- aMax
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.
-
-