This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Multinomial randist
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Gavin <gec at threeplusone dot com>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 24 Nov 2002 19:26:59 +0000 (GMT)
- Subject: Re: Multinomial randist
- References: <5D16ACE8-FEA1-11D6-81AF-000393B63894@threeplusone.com>
Gavin writes:
> I've attached code for a multinomial random distribution
> generator, which might be of some use.
Thanks.
Can you modify it so that p can be unnormalized (weights). Then it
will also work if the user provides p's that don't sum to 1, like the
gsl_ran_discrete functions do.