| hanaml.negative.binomial {hana.ml.r} | R Documentation |
Draw samples from a negative binomial distribution.
hanaml.negative.binomial(conn.context, m = NULL,
r = NULL,
p = NULL,
seed = NULL,
thread.ratio = NULL)
conn.context |
|
m |
|
r |
|
p |
|
seed |
|
thread.ratio |
|
DataFrame containing the generated random samples,
random samples:
- ID, type INTEGER, ID column.
- GENERATED_NUMBER, type DOUBLE, sample value.
## Not run:
Draw samples from a beta distribution.
> negative.binomial <- hanaml.negative.binomial(conn, n = 10, p = 0.6,
m = 20, seed = 1,
thread.ratio = 0)
> negative.binomial$collect()
ID GENERATED_NUMBER
0 0 0.0
1 1 2.0
2 2 3.0
3 3 1.0
4 4 1.0
5 5 0.0
6 6 2.0
7 7 1.0
8 8 2.0
9 9 3.0
## End(Not run)