On Sun, 1 Aug 2021 at 15:57, Gilles Sadowski <gillese...@gmail.com> wrote:
> > > Do you think that the API defined in the > "commons-statistics-distribution" > module is suitable for implementing this concept: > https://en.wikipedia.org/wiki/Distribution_(mathematics) > ? > That is a different definition of distribution and involves using distributions to define differentials of integrable functions. I am not familiar with this usage. It may have been applicable in the scope of CM but I think that statistics should be limited in scope to just probability distributions. Wikipedia lists a disambiguation page for distribution [1] so perhaps we should be clear that statistics.distribution is applicable to probability distributions [2]. The package javadoc currently states: Implementations of common discrete and continuous distributions. This can be updated to: Implementations of common discrete and continuous probability distributions. [1] https://en.wikipedia.org/wiki/Distribution#In_mathematics [2] https://en.wikipedia.org/wiki/Probability_distribution > > > In other libraries for continuous functions they implement only the > > probability density function (PDF) and the cumulative distribution > function > > (CDF) for both continuous and discrete distributions. There is no > > additional probability function. > > > > Thus the method has no use in the current library. Here are two options: > > > > 1. Remove the method > > +1 > > Thanks, > Gilles > > > 2. Implement the method in the ConstantContinuousDistribution to return 1 > > when the value equals the constant value. It currently does this for the > > density function but probability(x) will return zero for all values so > it a > > bug. This behaviour was ported from Commons Math 3. I find no continuous > > distributions that override the probability method there either. > > > > Alex > > > > [1] https://en.wikipedia.org/wiki/Dirac_delta_function > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >