turicreate.Sketch.mean

Sketch.mean()

Returns the mean of the values in the SArray. Returns 0 on an empty array. Throws an exception if called on an SArray with non-numeric type.

Returns:
out : float

Mean of all values in SArray. Returns 0 if the sarray is empty.

Raises:
RuntimeError

If the sarray is a non-numeric type.