Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LogNormal distrubtion -- help?!

0 views
Skip to first unread message

Lyle Hayhurst

unread,
Aug 17, 2001, 3:38:45 PM8/17/01
to
Hello all. I'm having some problems getting the LogNormal distribution
class in libg++ 2.8.1.1a working.

My code is basically-->

#include <ACG.H>
#include <LogNorm.H>

void main()
{
ACG gen;
double mean = 300; double variance = 60;
LogNormal n ( mean, variance, & gen ); //
for( int i = 0; i < 100; i++ ) cout << n() << endl;
}

I end up getting a distribution that looks NOTHING like a lognormal
distribution ( it goes up to 300, peaks for a bit, then continues to rise
into infinity ).

Am I doing something wrong ?

Thanks in advance

Lyle

0 new messages