hanaml.gamma.RdDraw samples from a gamma distribution.
hanaml.gamma( connection.context, m = NULL, shape = NULL, scale = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| shape |
|
| scale |
|
| 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 gamma distribution:
> gamma <- hanaml.gamma(connection.context = conn,
m = 20,
shape = 1.1,
scale = 1.2,
seed = 1,
thread.ratio = 0)
Output:
> gamma$collect()
ID GENERATED_NUMBER
1 0 0.082794
2 1 0.084031
3 2 0.159490
4 3 1.063100
5 4 0.530218
6 5 1.307313
7 6 0.565527
8 7 0.474969
9 8 0.440999
10 9 0.463645