Class Median

  • All Implemented Interfaces:
    java.io.Serializable, UnivariateStatistic

    public class Median
    extends Percentile
    implements java.io.Serializable
    Returns the median of the available values. This is the same as the 50th percentile. See Percentile for a description of the algorithm used.

    Note that this implementation is not synchronized. If multiple threads access an instance of this class concurrently, and at least one of the threads invokes the increment() or clear() method, it must be synchronized externally.

    See Also:
    Serialized Form
    • Constructor Detail

      • Median

        public Median()
        Default constructor.
      • Median

        public Median​(Median original)
        Copy constructor, creates a new Median identical to the original
        Parameters:
        original - the Median instance to copy