hanaml.normal.RdDraw samples from a normal distribution.
hanaml.normal( connection.context, m = NULL, mean = NULL, sd = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| mean |
|
| sd |
|
| 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 normal distribution:
> normal <- hanaml.normal(connection.context = conn,
mean = 1,
sd = 2,
m = 20,
seed = 1, thread.ratio = 0)
Output:
> normal$collect()
ID GENERATED_NUMBER
1 0 0.321078
2 1 -1.327626
3 2 0.798867
4 3 -0.116128
5 4 -0.213519
6 5 0.008566
7 6 0.251733
8 7 0.404510
9 8 -0.534899
10 9 -0.420968