Generates numeric matrices filled with random values. Several random distributions are supported.
Version | 1.0 |
---|---|
Bundle | tools |
Categories | Analysis |
Authors | Kristian Ovaska (kristian.ovaska@helsinki.fi) |
Issue tracker | View/Report issues |
Requires | R |
Source files | component.xml Randomizer.r |
Usage | Example with default values |
Name | Type | Description |
---|---|---|
out | Matrix | Matrix of generated random numbers. |
Name | Type | Default | Description |
---|---|---|---|
columnNamePattern | string | "Column%d" | Printf-like pattern for generating column names in the result. The pattern is evaluated using the current column number as an integer parameter, accessible using %d. |
columns | int | (no default) | Number of columns in the result. |
distribution | string | "uniform" | Distribution from which random numbers are fetched. Valid values are "uniform", "normal", "exponential" and "poisson". |
firstColumn | string | "RowName" | Name of first column; this is the first cell in the matrix. |
max | float | 1 | For the uniform distribution, this is the maximum possible generated value. Not used for other distributions. |
mean | float | 0 | For normal, exponential and poisson distributions, this gives the expected value of the generated values. For exponential, this is the inverse of rate. For poisson, this is lambda. Not used for the uniform distribution. |
min | float | 0 | For the uniform distribution, this is the minimum possible generated value. Not used for other distributions. |
rowNamePattern | string | "Row%d" | Printf-like pattern for generating row names in the result. The pattern is evaluated using the current row number as an integer parameter, accessible using %d. |
rows | int | (no default) | Number of rows in the result. |
sd | float | 1 | For the normal distribution, this is the standard deviation of generated values. Not used for other distributions. |
Test case | Parameters▼ | OUT out |
||||
---|---|---|---|---|---|---|
case01_uniform | properties | out | ||||
columns=3, |
||||||
case02_normal | properties | out | ||||
columns=3, |
||||||
case03_exp | properties | out | ||||
columns=3, |
||||||
case04_poisson | properties | out | ||||
columns=3, |