scale {kazaam} | R Documentation |
Centers and/or scales the columns of a distributed matrix.
scale(x, center = TRUE, scale = TRUE)
## S4 method for signature 'shaq,logical,logical'
scale(x, center = TRUE, scale = TRUE)
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 |
A shaq.
The communication consists of two allreduce calls, each quadratic on the number of columns.
## Not run:
library(kazaam)
x = ranshaq(rnorm, 10, 3, mean=30, sd=10)
x
scale(x)
finalize()
## End(Not run)