/usr/share/doc/ruby-gsl/examples/stats/mean.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env ruby
require("gsl")
N = 100000
rng = GSL::Rng.alloc
v = rng.gaussian(2, N)
p v.mean
p v.variance
p v.sd
p v.variance_m(0)
p v.sd_m(0)
p v.variance_with_fixed_mean(0)
p v.sd_with_fixed_mean(0)
|