[felix@ngs ~]$ irb
ruby-1.9.2-p180 :001 > require 'gsl'
=> true
ruby-1.9.2-p180 :002 > include GSL
=> Object
ruby-1.9.2-p180 :003 > v = Vector.alloc([1,2,3,4,5])
=> GSL::Vector
[ 1.000e+00 2.000e+00 3.000e+00 4.000e+00 5.000e+00 ]
ruby-1.9.2-p180 :004 > v.quantile_from_sorted_data
TypeError: can't convert GSL::Vector to Float (GSL::Vector#to_f gives GSL::Vector)
from (irb):4:in `stats_quantile_from_sorted_data'
from (irb):4
from /home/felix/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `<main>'
--------------
could anyone give me a hint?
thanks a lot.
|