Transform probability

Description

Transforms probabilities of all objects in SOURCE.

Input

  • SOURCE [OBJ]: a list of objects

Output

  • RESULT [OBJ]: a list of objects 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.