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