Class 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 is min.

    See Also:
    Wikipedia: Minimum
    • Constructor Detail

      • Min

        public Min()
        Construct an empty Min calculator.
      • Min

        public Min​(double[] data)
        Construct a Min calculator, initialized with a sample.
        Parameters:
        data - a sample
      • Min

        public Min​(Min that)
        Copy constructor.
        Parameters:
        that - a Min calculator
    • Method Detail

      • addData

        public void addData​(double... data)
        Description copied from interface: Statistic
        Recompute the statistic with more data, incrementally if possible.
        Specified by:
        addData in interface Statistic
        Parameters:
        data - an array of new items
      • value

        public double value()
        Description copied from interface: Statistic
        Get the value of the statistic.
        Specified by:
        value in interface Statistic
        Returns:
        the statistic
      • N

        public long N()
        Description copied from interface: Statistic
        Get the size of the sample.
        Specified by:
        N in interface Statistic
        Returns:
        the sample size