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