Sha256: 4658aeff22fc2b2c4403cee28f4a8806fa92eaaba0f723d2953c932019c24714

Contents?: true

Size: 212 Bytes

Versions: 22

Compression:

Stored size: 212 Bytes

Contents

#!/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)

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
gsl-2.1.0.3 examples/stats/mean.rb
gsl-2.1.0.2 examples/stats/mean.rb
gsl-2.1.0.1 examples/stats/mean.rb
gsl-2.1.0 examples/stats/mean.rb
gsl-1.16.0.6 examples/stats/mean.rb
rb-gsl-1.16.0.5 examples/stats/mean.rb
rb-gsl-1.16.0.4 examples/stats/mean.rb
rb-gsl-1.16.0.3 examples/stats/mean.rb
rb-gsl-1.16.0.3.rc1 examples/stats/mean.rb
gsl-nmatrix-1.15.3.2 examples/stats/mean.rb
gsl-nmatrix-1.15.3.1 examples/stats/mean.rb
rb-gsl-1.16.0.2 examples/stats/mean.rb
rb-gsl-1.16.0.1 examples/stats/mean.rb
rb-gsl-1.16.0 examples/stats/mean.rb
rb-gsl-1.15.3.2 examples/stats/mean.rb
rb-gsl-1.15.3.1 examples/stats/mean.rb
blackwinter-gsl-1.15.3.2 examples/stats/mean.rb
gsl-nmatrix-1.15.3.0 examples/stats/mean.rb
gsl-1.15.3 examples/stats/mean.rb
gsl-1.14.7 examples/stats/mean.rb