Sha256: 4562ac91d61694838a5f601a28f65a8c89f1cd6377818294e81d150c29a42013
Contents?: true
Size: 304 Bytes
Versions: 22
Compression:
Stored size: 304 Bytes
Contents
#!/usr/bin/env ruby require("gsl") x = GSL::Vector.linspace(0, 2, 100) y1 = GSL::Ran::weibull_pdf(x, 1, 1) y2 = GSL::Ran::weibull_pdf(x, 1, 2) y3 = GSL::Ran::weibull_pdf(x, 2, 3) GSL::graph(x, y1, y2, y3, "-T X -g 3 -C -x 0 2 -y 0 1.5 -X x -Y 'p(x)' -L 'Weibull distribution' --toggle-rotate-y-label")
Version data entries
22 entries across 22 versions & 4 rubygems