frlearn.location_measures.median

frlearn.location_measures.median(X)[source]

Middle value after sorting all values by size, or mean of the two middle values.

Parameters
Xnp.array

Dataset. Should be a two-dimensional array.

Returns
a: np.array

One-dimensional array that contains the median for each feature.