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]

a few questions about discrete rng


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


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