hanaml.Cauchy.RdDraw samples from a Cauchy distribution.
hanaml.Cauchy( connection.context, m = NULL, location = NULL, scale = NULL, seed = NULL, thread.ratio = NULL )
| connection.context |
|
|---|---|
| m |
|
| location |
|
| scale | codedouble, 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 Cauchy distribution:
> cauchy <- hanaml.Cauchy(connection.context = conn,
m = 20,
location = 0.9,
scale = 1.1,
seed = 1,
thread.ratio = 0)
Output:
> cauchy$collect()
ID GENERATED_NUMBER
1 0 1.827259
2 1 -1.877612
3 2 -18.241436
4 3 -1.216243
5 4 2.091336
6 5 -317.131147
7 6 -2.804251
8 7 -0.338566
9 8 0.143280
10 9 1.277245