Base.variance

Base.variance()

Returns a number representing the variance of the nimble object.

Examples

>>> lst = [[1, 2, 0], [0, 0, 5]]
>>> X = nimble.data(lst)
>>> X.variance()
3.866666666666667