Sha256: ef09d8fc8008de94a18cf80be5e32de05fd3b7c4c7643ba3c4f8ccf898b49f7a
Contents?: true
Size: 248 Bytes
Versions: 22
Compression:
Stored size: 248 Bytes
Contents
#!/usr/bin/env ruby require("gsl") N = 10000 r = GSL::Rng.alloc na = r.gaussian(1.0, N).to_na # Generate N random numbers p na.class p na.rank p na.size p na.min p na.max h = GSL::Histogram.alloc(50, [-4, 4]) h.fill(na) h.graph("-T X -C -g 3")
Version data entries
22 entries across 22 versions & 4 rubygems