mlpy.mdp.distrib.ProbabilityDistribution.iadd

ProbabilityDistribution.iadd(state, proba)[source]

In-place addition of the probability to the states probability.

If the state does not exist in the list of states, it will be added.

Parameters:

state : State

The state for which the probability is updated.

proba : float

The probability value to add to the state’s probability.