[TOC]

median

Sample median

Introduction

Sample median is the "middle point" of a given set of data. It divides the data into 2 sub-groups of same number of elements. Let be elements of sorted in increasing order. The median of is given by

If is complex, its elements are sorted by the moduli.

Usages

m = median(A)

m = median(A, dim)