hanaml.negative.binomial.RdDraw samples from a negative binomial distribution.
hanaml.negative.binomial( connection.context, m = NULL, r = NULL, p = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| r |
|
| p |
|
| 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 negative.binomial distribution:
> negative.binomial <- hanaml.negative.binomial(connection.context = conn,
m = 20,
r = 10,
p = 0.6
seed = 1,
thread.ratio = 0)
Output:
> negative.binomial$collect()
ID GENERATED_NUMBER
1 0 0.0
2 1 2.0
3 2 3.0
4 3 1.0
5 4 1.0
6 5 0.0
7 6 2.0
8 7 1.0
9 8 2.0
10 9 3.0