arpes.simulation.sample_from_distribution(distribution: numpy.ndarray, N: int = 5000) numpy.ndarray[source]

Samples events from a probability distribution.

Given a probability distribution in ND modeled by an array providing the PDF, sample individual events coming from this PDF.

  • distribution – The probability density. The probability of drawing a sample at (i, j) will be proportional to distribution[i, j].

  • N – The desired number of electrons/samples to pull from the distribution.


An array with the arrival locations.