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