kazaam (version 0.1-0)

scale: Scale

Description

Centers and/or scales the columns of a distributed matrix.

Usage

scale(x, center = TRUE, scale = TRUE)

# S4 method for shaq,logical,logical scale(x, center = TRUE, scale = TRUE)

Arguments

x

A shaq.

center

logical value, determines whether or not columns are zero centered

scale

logical value, determines whether or not columns are rescaled to unit variance

Value

A shaq.

Communication

The communication consists of two allreduce calls, each quadratic on the number of columns.

Examples

Run this code

library(kazaam)
x = ranshaq(rnorm, 10, 3, mean=30, sd=10)

x
scale(x)

finalize()


Run the code above in your browser using DataCamp Workspace