Instance Method

sum()

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

Declaration

func sum() -> Int?
Available when Element is Int.

Return Value

An Int; otherwise nil if the column is invalid.

See Also

Getting Sum, Mean, and Standard Deviation Values

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 mean() -> Double?

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

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