Sha256: 547579fe3469fb1efada2fbebce8a967d5415b8aeb89264e83ec185001e879a6
Contents?: true
Size: 269 Bytes
Versions: 22
Compression:
Stored size: 269 Bytes
Contents
#!/usr/bin/env ruby require("gsl") pp = 0.5 nn = 3 IO.popen("graph -T X -C -g 3 -x 0 10 -y 0 0.3 -L 'Pascal Distribution, p = 0.5, n = 3'", "w") do |io| for i in 0..10 do y = GSL::Ran::pascal_pdf(i, pp, nn) io.printf("%d %e\n%d %e\n", i, y, i+1, y) end end
Version data entries
22 entries across 22 versions & 4 rubygems