scale {kazaam} | R Documentation |
Scale
Description
Centers and/or scales the columns of a distributed matrix.
Usage
scale(x, center = TRUE, scale = TRUE)
## S4 method for signature '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
## Not run:
library(kazaam)
x = ranshaq(rnorm, 10, 3, mean=30, sd=10)
x
scale(x)
finalize()
## End(Not run)
[Package kazaam version 0.1-0 Index]