Instance Method

mean()

Returns the arithmetic mean of the elements in a column of doubles.

Declaration

func mean() -> Double?
Available when Element is Double.

Return Value

A Double; otherwise nil if the column is invalid.

See Also

Getting Sum, Mean, and Standard Deviation Values

func sum() -> Int?

Returns the sum of the elements in a column of integers.

func sum() -> Double?

Returns the sum of the elements in a column of doubles.

func mean() -> Double?

Returns the arithmetic mean of the elements in a column of integers.

func std() -> Double?

Returns the standard deviation of the elements in a column of integers.

Deprecated
func stdev() -> Double?

Returns the standard deviation of the elements in a column of doubles.

func std() -> Double?

Returns the standard deviation of the elements in a column of doubles.

Deprecated