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