Probability Distribution and Statistical Functions -- Uniform Distribution Module#593
Conversation
gareth-nx
left a comment
There was a problem hiding this comment.
Thanks very much for this!
I noticed some minor issues:
- In the documentation for
pdf_uniform, there is no explanation of what thelocparameter does. I think you just need to say something like:f(x)is zero forx<locorx > (loc+scale), and otherwise .... (continue to current definition). - In the documentation for
cdf_uniform, you should also mention that it is zero forx < loc, and one forx > (loc+scale).
I also have a question about MESSENE_NUMBER which is used to normalise the random integers to produce uniform random variables. Currently it is always double precision. Does this reflect that the random number algorithm is fundamentally double precision (like in the case of the normal distribution module). If yes, could you please add a statement in the documentation to that effect? Or, should we have the precision of MESSENE_NUMBER varying with the precision of the inputs?
Alright, I will add description for |
This is a minor update version to correct precision issue. Based on the conversation here, we should provide all precision for pdf and cdf functions. Originally, uniform distribution provides only single precision for pdf and cdf.