hanaml.weibull.RdDraw samples from a weibull distribution.
hanaml.weibull( 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 weibull distribution:
> weibull <- hanaml.weibull(connection.context = conn,
m = 20,
shape = 2,
scale = 3,
seed = 1,
thread.ratio = 0)
Output:
> weibull$collect()
ID GENERATED_NUMBER
1 0 2.188750
2 1 0.247628
3 2 0.339884
4 3 0.902187
5 4 0.909629
6 5 0.514740
7 6 4.627877
8 7 0.143767
9 8 0.847514
10 9 2.368169