Transform probability [String]

Description

Transforms probabilities of all strings in SOURCE.

Input

  • SOURCE [STRING]: a list of strings

Output

  • RESULT [STRING]: a list of strings with transformed probabilities

Parameters

  • Transformation: how to transform the probability p (which is in the range ]0,1]) of each item in input

    • COMPLEMENT: p = 1 - p

    • INVERSE: p = 1 / p

    • CONSTANT (Value): p = Value

    • PRIOR (Value): p = Value * p

    • RANDOM: p = a random number in the range ]0,1]

    • RANKING: keeps the same ranking as in input, but distributes the probabilities more regularly.