1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.math.stat.descriptive.rank;
17
18 import java.io.Serializable;
19
20
21 /**
22 * Returns the median of the available values. This is the same as the 50th percentile.
23 * See {@link Percentile} for a description of the algorithm used.
24 * <p>
25 * <strong>Note that this implementation is not synchronized.</strong> If
26 * multiple threads access an instance of this class concurrently, and at least
27 * one of the threads invokes the <code>increment()</code> or
28 * <code>clear()</code> method, it must be synchronized externally.
29 *
30 * @version $Revision: 348519 $ $Date: 2005-11-23 12:12:18 -0700 (Wed, 23 Nov 2005) $
31 */
32 public class Median extends Percentile implements Serializable {
33
34 /** Serializable version identifier */
35 private static final long serialVersionUID = -3961477041290915687L;
36
37 /**
38 * Default constructor.
39 */
40 public Median() {
41 super(50.0);
42 }
43
44 }