Hello!
i try to fit my data with Negative Benomial Distribution. so, first of all i can’t to write this function in routine. Problem is in tgamma function. in block of code like that
the negative binomial is not defined yet in ROOT> We could add for one of the next release. However is easy to implement in term of the gamma (or better log of the gamma) function.
Here is an example of code implementing the probability density function: