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

Select distribution
The distribution from which the value is generated
Column Name
The name of the column
Seed
The random seed, deactivate the seed if you want to generate different values in each run of the node.
Value 1
The first parameter.
Value 2
The second parameter.

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.