turicreate.Sketch.var

Sketch.var()

Returns the variance 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

The variance of all the values. Returns 0 if the SArray is empty.

Raises:
RuntimeError

If the sarray is a non-numeric type.