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

Replies are listed 'Best First'.
Re^2: code for Levy Distribution?
by ikegami (Patriarch) 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.

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 :)