examples/histogram/histogram-pdf.rb in rb-gsl-1.16.0.4 vs examples/histogram/histogram-pdf.rb in rb-gsl-1.16.0.5

- old
+ new

@@ -14,11 +14,11 @@ rng2 = GSL::Rng.alloc() h2 = GSL::Histogram.alloc(NBINS, [-MAX, MAX]) NDATA2 = 10000 for i in 0...NDATA2 do - val = hpdf.sample(rng2.uniform()) - h2.fill(val) + val = hpdf.sample(rng2.uniform()) + h2.fill(val) end GSL::graph(h, h2) sum = h.sum() # NDATA