Sha256: 4562ac91d61694838a5f601a28f65a8c89f1cd6377818294e81d150c29a42013

Contents?: true

Size: 304 Bytes

Versions: 22

Compression:

Stored size: 304 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 4 rubygems

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