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