compute_moran_transition_probability

ludics.main.compute_moran_transition_probablity(source, target, fitness_function, selection_intensity, **kwargs)

Calculates the probability of transitioning from source to target in the Moran process

Parameters:

  • source: numpy.array - the current state
  • target: numpy.array - the state being transitioned to
  • fitness_function: func - takes a numpy.array and returns an `array of floats with the same shape
  • selection_intensity: float - the selection intensity of the process

Returns:

  • float if source != target, else None