Random Number Assigner (Apache)

Generates a new column with values selected from the selected distribution. There are two numerical parameters which can be controlled, Value1 and Value2. Based on the distribution which is selected the parameters have different meanings. See the section below for an explanation.

Gaussian

  • Value1: mean
  • Value2: standard deviation > 0
Generates a random value from the Normal (or Gaussian) distribution with specified mean and standard deviation.

Exponential

  • Value1: mean > 0
  • Value2: not used
Generates a random value from the exponential distribution with specified mean.

Gamma

  • Value1: shape > 0
  • Value2: scale > 0
Generates a random value from the Gamma Distribution.

T

  • Value1: df the degrees of freedom > 0
  • Value2: not used
Generates a random value from the T Distribution.

Weibull

  • Value1: shape > 0
  • Value2: scale > 0
Generates a random value from the Weibull Distribution.

Beta

  • Value1: alpha
  • Value2: beta
Generates a random value from the Beta Distribution.

Cauchy

  • Value1: median
  • Value2: scale
Generates a random value from the Cauchy Distribution.

ChiSquare

  • Value1: df - the degrees of freedom
  • Value2: not used
Generates a random value from the ChiSquare Distribution.

F

  • Value1: numeratorDf - the numerator degrees of freedom > 0
  • Value2: denominatorDf - the denominator degrees of freedom > 0
Generates a random value from the F Distribution.

Uniform

  • Value1: lower > upper
  • Value2: upper
Generates a uniformly distributed random value from the open interval (lower, upper) (i.e., endpoints excluded).

The generation is performed with the Data Generators as provided by Apache Commons Math.

Options

Distribution
The statistical distribution from which the random values are generated. The meaning of Value 1 and Value 2 depends on the selected distribution:
  • Beta: Beta distribution. Value 1 = alpha, Value 2 = beta.
  • Cauchy: Cauchy distribution. Value 1 = median, Value 2 = scale.
  • Chi-Square: Chi-Square distribution. Value 1 = degrees of freedom (Value 2 is ignored).
  • Exponential: Exponential distribution. Value 1 = mean (> 0) (Value 2 is ignored).
  • F: F distribution. Value 1 = numerator degrees of freedom (> 0), Value 2 = denominator degrees of freedom (> 0).
  • Gamma: Gamma distribution. Value 1 = shape (> 0), Value 2 = scale (> 0).
  • Gaussian: Gaussian (normal) distribution. Value 1 = mean, Value 2 = standard deviation (> 0).
  • T: Student's t distribution. Value 1 = degrees of freedom (> 0) (Value 2 is ignored).
  • Uniform: Uniform distribution. Value 1 = lower bound, Value 2 = upper bound (> Value 1).
  • Weibull: Weibull distribution. Value 1 = shape (> 0), Value 2 = scale (> 0).
Column name
The name of the new column containing the randomly generated values.
Value 1
The first parameter for the selected distribution.
Value 2
The second parameter for the selected distribution.
Use seed
When enabled, a fixed seed is used to produce a deterministic result. When disabled, each execution may produce different results.
Seed
The random seed to produce a deterministic result. Only used when "Use seed" is enabled.
Draw seed
Generate a random seed and set it in the seed input above for reproducible runs.

Input Ports

Icon
Some data.

Output Ports

Icon
One additional column containing the random 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.