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

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