hanaml.exponential.RdDraw samples from a exponential distribution.
hanaml.exponential( connection.context, m = NULL, lambda = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| lambda |
|
| 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 Exponential distribution:
> exponential <- hanaml.exponential(connection.context = conn,
m = 20,
lambda = 1.5,
seed = 1,
thread.ratio = 0)
Output:
> exponential$collect() ID GENERATED_NUMBER 1 0 0.035207 2 1 0.559248 3 2 0.122307 4 3 2.339937 5 4 1.130033 6 5 0.985565 7 6 0.030138 8 7 0.231040 9 8 1.233268 10 9 0.876022