Returns the marginal contribution to fill rate for each stock position in r.
r: demand distribution.
Examples
r = poisson(2)
f = fillrate(r)
table T = extend.range(5)
T.K = T.N - 1
T.Value = int(f, T.K, T.K)
show table "Fillrate" with
T.K as "Stock"
T.Value as "Marginal"
This produces the following table:
Stock
Marginal
0
0
1
0.4323483
2
0.2970067
3
0.1616652
4
0.07143744
Remarks
If r has negative support, fillrate behaves as if the distribution were
conditioned on r > 0. Use cdf on the result to obtain the
cumulated fill rate.