From 83245ee954cc501ff91b16e0f24d0b2069d9007b Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Thu, 24 Jul 2008 11:21:09 -0400 Subject: [PATCH] Fixing an error in the Histogram POD --- Histogram.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Histogram.i b/Histogram.i index 408fe6b..4eba65f 100644 --- a/Histogram.i +++ b/Histogram.i @@ -118,6 +118,8 @@ Here is a list of all the functions included in this module : =item C - This function sets the ranges of the existing histogram $h to cover the range $xmin to $xmax uniformly. The values of the histogram bins are reset to zero. The bin ranges are shown in the table below, +=back + =over =item bin[0] corresponds to xmin <= x < xmin + d @@ -198,6 +200,8 @@ The values of the ranges are formatted using range_format and the value of the b =item C - This function uses $r, a uniform random number between zero and one, to compute a single random sample from the probability distribution $p. The algorithm used to compute the sample s is given by the following formula, s = range[i] + delta * (range[i+1] - range[i]) where i is the index which satisfies sum[i] <= r < sum[i+1] and delta is (r - sum[i])/(sum[i+1] - sum[i]). +=back + =head1 EXAMPLES The following example shows how to create a histogram with logarithmic bins with ranges [1,10), [10,100) and [100,1000). -- 2.11.4.GIT