turicreate.SArray.median

SArray.median(approximate=False)

Median of all the values in the SArray.

Note: no linear smoothing is performed. If the lenght of the SArray is an odd number. Then a value between a and b will be used, where a and b are the two middle values.

Parameters:
approximate : bool

If True an approximate value will be returned. Calculating an approximate value is faster. The approximate value will be within 5% of the exact value.

Returns:
out : float | turicreate.Image

Median of all values in SArray

See also

mean