Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: How does Math::GSL accept data?

by Anonymous Monk
on Aug 06, 2009 at 19:33 UTC ( [id://786549]=note: print w/replies, xml ) Need Help??

in reply to Re^2: How does Math::GSL accept data?
in thread How does Math::GSL accept data?

Well, I don't know Perl, but I do know GSL. Statemens in your code are in a wrong order. 1) Allocate 6 bins gsl_histogram* h=gsl_histogram_alloc(6); 2) Set the ranges. 6 bins require 7 points. (you have 6) double ranges7={1.,2.,3.,4.,5.,6.,7.}; gsl_histogram_set_ranges(h,ranges,7); 3) And only after initialization one can use the histogram 4) In C one should free the histogram after using it. No idea about Perl.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://786549]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-06-18 08:18 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.