Sha256: 8fb8681f731d2a6b2ecfa5528be5fb17857e035bb96c0856025474756d67d265

Contents?: true

Size: 267 Bytes

Versions: 22

Compression:

Stored size: 267 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
x = GSL::Vector.linspace(0, 3, 100)
y1 = GSL::Ran::lognormal_pdf(x, 0, 1)
y2 = GSL::Ran::lognormal_pdf(x, 1, 1)
GSL::graph(x, y1, y2, "-T X -g 3 -C -X x -Y 'p(x)' -L 'Lognormal distribution, zeta=0,1, s=1' --toggle-rotate-y-label")

Version data entries

22 entries across 22 versions & 4 rubygems

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