sumFirstLoss_

protected fun sumFirstLoss_(x: Double, n: Int, p: Double, recursive: Boolean): Double(source)

Sums the first order loss function from 1 up to and including x. x is interpreted as an integer

Return

the sum

Parameters

x

the value to evaluate

n

the number of trials

p

the probability of success

recursive

true if recursive algorithm is to be used