turicreate.SArray.median — Turi Create API 6.4.1 documentation (original) (raw)

Turi Create API

Turi Create API


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, wherea 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