neg Binomial LF1
Allows static computation of 1st order loss function assumes that distribution's range is {0,1, ...}
Return
the loss function value
Parameters
j
value for which 1st order loss function is needed
r
num of successes
p
prob of success, must be in range (0,1)
recursive
true indicates that the recursive logarithmic algorithm should be used