This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multinomial randist


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]