hanaml.binomial.RdDraw samples from a binomial distribution multivariate distribution
hanaml.binomial( connection.context, m = NULL, n = NULL, p = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| n |
|
| p | codetuple of double or integer, optional |
| seed |
Note that when multithreading is enabled, the random number sequences
of different runs might be different even if the |
| thread.ratio |
|
DataFrame containing the generated random samples, structured as follows:
ID: type INTEGER, ID column
GENERATED_NUMBER: type DOUBLE, sample values
Draw samples from a binomial distribution:
> binomial <- hanaml.binomial(connection.context = conn,
n = 10,
p = 0.6,
m = 20,
seed = 1,
thread.ratio = 0)
Call the function:
> binomial$collect() ID RANDOM_P1 RANDOM_P2 RANDOM_P3 RANDOM_P4 1 0 0 2 4 4 2 1 2 2 4 2 3 2 4 0 5 1 4 3 0 0 5 5 5 4 1 4 2 3 6 5 4 1 4 1 7 6 1 4 2 3 8 7 2 3 2 3 9 8 3 0 6 1 10 9 2 2 3 3