powered by
Generate a random shaq object.
ranshaq(generator, nrows, ncols, local = FALSE, ...)
A function, such as runif() or rnorm() (passed without parens). See examples for a demonstration of usage.
runif()
rnorm()
The number of rows
Is the problem size nrows*ncols specifying the local or global problem size?
nrows*ncols
Additional arguments passed to the generator.
A shaq.
The operation is entirely local.
library(kazaam) # a 10x3 shaq with random uniform data x = ranshaq(runif, 10, 3) x # a (comm.size() * 10)x3 shaq with random normal data y = ranshaq(rnorm, 10, 3, local=TRUE) y finalize()
Run the code above in your browser using DataLab