Skip to main content
. 2019 Jan 19;21(1):92. doi: 10.3390/e21010092
Algorithm 1 Original von Neumann rejection algorithm
  • 1:

    repeat

  • 2:

       Sample X according to (qx)xX

  • 3:

       Sample U uniformly on [0,1]

  • 4:

       if UCqXpX then

  • 5:

         return X {X is accepted}

  • 6:

      end if

  • 7:

    end repeat