Operator

+(_:_:)

Creates a column of doubles by adding each element of the given column to the given double.

Declaration

static func + (a: MLDataColumn<Double>, b: Double) -> MLDataColumn<Double>
Available when Element is Double.

Parameters

a

A column of doubles.

b

A double.

Return Value

A new column of doubles.

See Also

Combining a Column with a Value to Generate a Column

static func + (MLDataColumn<Int>, Int) -> MLDataColumn<Int>

Creates a column of integers by adding each element of the given column to the given integer.

static func - (MLDataColumn<Int>, Int) -> MLDataColumn<Int>

Creates a column of integers by subtracting the given integer from each element of the given column.

static func - (MLDataColumn<Double>, Double) -> MLDataColumn<Double>

Creates a column of doubles by subtracting the given double from each element of the given column.

static func * (MLDataColumn<Int>, Int) -> MLDataColumn<Int>

Creates a column of integers by multiplying each element of the given column by the given integer.

static func * (MLDataColumn<Double>, Double) -> MLDataColumn<Double>

Creates a column of doubles by multiplying each element of the given column by the given double.

static func / (MLDataColumn<Int>, Int) -> MLDataColumn<Int>

Creates a column of integers by dividing each element of the given column by the given integer.

static func / (MLDataColumn<Double>, Double) -> MLDataColumn<Double>

Creates a column of doubles by dividing each element of the given column by the given double.