To create a discrete representation of a PDF, we use the fact that the probability of an interval is given by its integral. Basically, there are two ways to approximate a PDF, which mainly differ in the way how the intervals are determined. The first one uses a sampling rate and, therefore, a fixed interval size. The second one uses arbitrary sizes for intervals. Both methods store the probabilities for the intervals, not the probability density.