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] |
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.
That seems like a good idea. Modified diff attached. Gavin -- Gavin E. Crooks Postdoctoral Fellow tel: (510) 642-9614 461 Koshland Hall fax: (413) 280-7813 University of California http://threeplusone.com/ Berkeley, CA 94720-3102, USA gec@compbio.berkeley.edu
Attachment:
multinomial2.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |