This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
a few questions about discrete rng
- From: Rodney Sparapani <rsparapa at post dot its dot mcw dot edu>
- To: gsl-discuss at sources dot redhat dot com
- Date: Mon, 8 Jul 2002 10:24:26 -0500 (CDT)
- Subject: a few questions about discrete rng
- Reply-to: Rodney Sparapani <rsparapa at post dot its dot mcw dot edu>
I'm working on a multinomial RNG for GSL. I was looking at the code in
randist/discrete.c and I'm perplexed. For the number of categories, the type
declaration is size_t. This is the type returned by the sizeof operator
according to the ANSI C standard for the number of bytes that a type has. I
don't think this is an appropriate definition. I believe it should be an
unsigned int, but not this one which has a special meaning and makes the source
hard to read. Also, the probability array is not of type gsl_vector. Is there
some reason for this? If we all agree on these changes, then I will submit an
updated discrete.c with my multinomial code. Thanks.
Rodney Sparapani Medical College of Wisconsin
Sr. Biostatistician Patient Care & Outcomes Research (PCOR)
rsparapa@mcw.edu http://www.mcw.edu/pcor
Was 'Name That Tune' rigged? WWLD -- What Would Lombardi Do