Sha256: 235f659cadcc56f607398226c276e3249425da87fe5620cd608661a996bbe22b

Contents?: true

Size: 263 Bytes

Versions: 22

Compression:

Stored size: 263 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 4 rubygems

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