hanaml.uniform.RdDraw samples from a uniform distribution.
hanaml.uniform( connection.context, m = NULL, min = NULL, max = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| min |
|
| max |
|
| 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 uniform distribution:
> uniform <- hanaml.uniform(connection.context = conn,
m = 20,
low = 1,
high = 5,
seed = 1,
thread.ratio = 0)
Output:
> uniform$collect()
ID GENERATED_NUMBER
1 0 0.032920
2 1 0.201923
3 2 0.823313
4 3 -0.495260
5 4 -0.138329
6 5 0.677732
7 6 0.685200
8 7 0.363627
9 8 0.024849
10 9 -0.441779