B prev next
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

<< RANDOM DISTRIBUTIONS >>

The Transformation Method

Example: Consider that we want the distribution Py(y) = y.
The transformation function is then

solving for y:


The computer implementations of the algoritm for 20,000 events:
Fortran 90   transformation.f90 histogram.f90 transformation.fout
ANSI C   transformation.c histogram.h transformation.cout