turicreate.SArray.mean

SArray.mean()

Mean of all the values in the SArray, or mean image.

Returns None on an empty SArray. Raises an exception if called on an SArray with non-numeric type or non-Image type.

Returns:
out : float | turicreate.Image

Mean of all values in SArray, or image holding per-pixel mean across the input SArray.

See also

median