median

median(v[, region])

Compute the median of whole array v, or optionally along the dimensions in region. For even number of elements no exact median element exists, so the result is equivalent to calculating mean of two median elements. NaN is returned if the data contains any NaN values. For applications requiring the handling of missing data, the DataArrays package is recommended.

Examples

julia> xsum = rand(5)
       median(xsum)
0.6850542627340954

See Also

cummax, eigmax, findmax, hist, hist!, hist2d, hist2d!, histrange, indmax, maxabs, maxabs!, maximum!, mean, mean!, median, median!, minabs, minabs!, minimum!, minmax, quantile!, realmax, std, stdm,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: