hanaml.PERT.RdDraw samples from a PERT distribution.
hanaml.PERT( connection.context, m = NULL, min = NULL, mode = NULL, max = NULL, scale = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| min |
|
| mode |
|
| max |
|
| scale | double, optional |
| 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 pert distribution:
> pert <- hanaml.pert(connection.context = conn,
m = 20,
minimum = 2,
mode = 3,
maximum = 4,
scale =4,
seed = 1,
thread.ratio = 0)
Output:
> pert$collect()
ID GENERATED_NUMBER
1 0 0.360781
2 1 -0.023649
3 2 0.106465
4 3 0.307412
5 4 -0.136838
6 5 -0.086010
7 6 -0.504639
8 7 0.335352
9 8 -0.287202
10 9 0.468597