Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: code for Levy Distribution?

by Anonymous Monk
on Oct 03, 2011 at 01:28 UTC ( #929243=note: print w/ replies, xml ) Need Help??


in reply to code for Levy Distribution?

Why can I download complete working office suites with one click, but CPAN is so complicated to use just to download some simple text?

Because you're confused and cranky :)

The purpose of libraries and CPAN is to be re-used, not provide you with cut/paste implementations of algorithms on demand

You can find the formula in the wikipedia://LÚvy distribution

Math::GSL is interface to libgsl, so you should look at libgsl sources

http://www.google.com/codesearch#search/&q=gsl_ran_levy&type=cs

http://bzr.savannah.gnu.org/lh/gsl/trunk/annotate/head:/randist/levy.c


Comment on Re: code for Levy Distribution?
Re^2: code for Levy Distribution?
by hsfrey (Beadle) on Oct 03, 2011 at 02:20 UTC
    "Because you're confused and cranky :)"

    Well, yes, that's quite true - on both counts.

    "The purpose of libraries and CPAN is to be re-used, not provide you with cut/paste implementations of algorithms on demand"

    Some of us are not happy with black boxes, and like to know what our programs are doing.

    "You can find the formula in the wikipedia://LÚvy distribution"

    Yes, I know that. I DID say that I wanted something like "gsl_ran_levy", which gives random variates drawn from a Levy distribution, and that's quite a different thing than a formula giving the probability distribution, which is what you referred me to.

      Yes, I know that. I DID say that I wanted something like "gsl_ran_levy", which gives random variates drawn from a Levy distribution, and that's quite a different thing than a formula giving the probability distribution, which is what you referred me to.

      Last thing I liked to was the source to gsl_ran_levy :)

Re^2: code for Levy Distribution?
by ikegami (Pope) on Oct 03, 2011 at 07:52 UTC

    I don't know how you install modules, but I don't consider my way complicated:

    cpan Module::Name

    Then again, I don't use CPAN to download text. I use it to download, build, test and install modules — not to mention all of their dependencies — in a portable and reliable manner.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2014-11-27 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (190 votes), past polls