binomial LF1
Allows static computation of 1st order loss function assumes that distribution's range is {0,1, ..., n} Uses the recursive logarithmic algorithm
Return
the first order loss function at j
Parameters
j
value for which 1st order loss function is needed
n
num of trial
p
prob of success
Allows static computation of 1st order loss function assumes that distribution's range is {0,1, ...,n}
Return
the first order loss function at j
Parameters
j
value for which 1st order loss function is needed
n
num of trials
p
prob of success
recursive
true indicates that the recursive logarithmic algorithm should be used