what :
Home > Objects > P > prob > author : Cycling74


Build a transition table of probabilities, Make weighted random series of numbers

Prob accepts lists of three numbers in its inlet. The third number represents the weight of the probability of going from states represented by the first two numbers. For example, 1 2 4 would mean that there is a weight of 4 in going from state 1 to state 2. When prob receives a bang, it makes a random jump from its current state to another state based on its current weighting of transitions. If a transition can be made, the new state is sent out the left outlet. If not, a bang is sent out the right outlet. For any particular state, the weights of all possible transition states are summed. Thus if a state could jump to three states that had weights of 3 4 and 1, the first one (3) would occur 37.5% of the time, the second 50% of the time, and the third 12.5%. Note that any state can make a transition to itself with a list of the form (state state weight).
from the library :
Format : External
Environment : max
Max 4.x


4853 objects and 135 libraries within the database Last entries : January 20th, 2022 Last comments : 0 0 visitor and 35876060 members connected RSS
Site under GNU Free Documentation License