Gamma Distributed Assigner

Assigns a value based on the class column. This value is gamma distributed as defined in the configuration by its peak and scaling parameter. As the peak, please select the value that should be selected most frequently. The scaling parameter can be used to modify the distribution. A value higher than the peak will result in a more compact distribution of the values and a smaller value results in a broader range.
This number generator can be used to generate different distributions based on the values of a categorical dependency column. To use this option please select a dependency column. You will then be able to assign one parameter settings for each value of the given class column.

Options

Dependency column
Choose a class column. Choose "None" to define one setting for the whole table.
Column name
The name for the generated column.
Use seed
When enabled, the random number generation will use a fixed seed value, making the randomization reproducible across multiple executions. When disabled, each execution will produce different random results.
Random seed
The seed value used for random number generation. Use the same seed to get identical random number results across multiple executions. You can enter a custom value or use the random seed generation button below.
Draw seed
Generate a random seed and set it in the Random seed input above for reproducible runs.
Min column bound
The lower bound for the generated values. As the gamma distribution is a half-open probability distribution, only this minimum bound is actually applied during generation.
Max column bound
The upper bound for the generated values. Note that for the gamma distribution only the minimum bound is used.
Values
The scale and the shape parameter p can be defined for each value of the given class column.
  • Name: The class column value from the dependency column.
  • Scale: The scale parameter that controls the spread of the distribution.
  • p: The shape parameter. A value higher than the scale results in a more compact distribution; a smaller value results in a broader range.

Input Ports

Icon
Data table.

Output Ports

Icon
one additional column containing the gamma distributed value.

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.