fillrate

fillrate, function

def pure fillrate(r: ranvar): ranvar

Returns the marginal contribution to fill rate for each stock position in r.

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.

See also

User Contributed Notes
0 notes + add a note