Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Curved Random Distribution

by fglock (Vicar)
on Oct 18, 2005 at 16:33 UTC ( #501059=note: print w/replies, xml ) Need Help??

in reply to Curved Random Distribution

How about Math::Random::OO::Normal

use Math::Random::OO::Normal; push @prngs, Math::Random::OO::Normal->new(), # mean 0, stdev 1 Math::Random::OO::Normal->new(5), # mean 5, stdev 1 Math::Random::OO::Normal->new(1,3); # mean 1, stdev 3 $_->seed(0.42) for @prngs; print( $_->next() . "\n" ) for @prngs;

Replies are listed 'Best First'.
Re^2: Curved Random Distribution
by xdg (Monsignor) on Oct 18, 2005 at 17:50 UTC

    I wrote M::R::OO::N, but I now recommend Jerry Hedden's Math::Random::MT::Auto instead. It's faster, more robust and supports more types of distributions.


    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://501059]
GotToBTru thinks erix & MySql ... talk about a database trigger
[GotToBTru]: wow .. outta votes and it's not even lunchtime yet
[stevieb]: berrybrew has been updated with the new perl checksums. Now I'm going to implement dynamic loading of perls thanks to their new JSON releases file

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2017-03-30 15:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (360 votes). Check out past polls.