pglpm / bayes_nonparametric_inference

Software development for "Bayesian nonparametric population inference". In other words, just the direct application of probability theory to get the most general, principled, model-free inference we can have.
Creative Commons Zero v1.0 Universal
4 stars 1 forks source link

Rename 'samplesFdistribution' functions along R conventions? #35

Open pglpm opened 3 weeks ago

pglpm commented 3 weeks ago

R has the convention of naming dDISTR the function that calculates the probability (density) of distribution DISTR, and rDISTR the function that generates samples from the distribution DISTR.

The function samplesFdistribution() produces samples of the frequency distribution F(Y|X) for given Y and X, so should it be renamed r[something]?

Similarly, inferpopulation() is generating samples of frequency distributions F, from the probability density P(F|data); or, from another point of view, it's generating samples of the parameters that identify such an F. So should it be renamed r[something] as well?

Similarly for other functions present in the protopackage.

choisant commented 2 weeks ago

I think following conventions is a good idea. As we are adding (good and useful) documentation it is less important that the filenames are intuitive for non-R-developers/your average Dr Joe.

pglpm commented 2 weeks ago

Cool! The problem is finding good names. The very symbol "F" is a bit arbitrary.