Sha256: 416d0dd7ca25353056843899d012cd12c1a2b0eac8a711510f1abda556aebb30

Contents?: true

Size: 244 Bytes

Versions: 22

Compression:

Stored size: 244 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 4 rubygems

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