calculating the primal radius distribution function.