Queueing Query with Maple
I have a queue with 1000 time intervals.
The average length over 1000 intervals was 2.718
I'm looking for the probabilities that a given state will jump up, , or down,
I ran the following through maple to count the number of times the queue moved up or down (qdata is the list of 1000 queue values):
for i from 1 to 999 do
if qdata[i+1]>qdata[i] then
elif qdata[i+1]<qdata[i] then
I ended up with and
I'm wondering if there is a problem here. Am I not taking into account when the queue length is zero and it has no probability of moving down?
Would it make sense to add this into the do loop:
elif qdata[i]=0 then
Or does the original code give the proper values? Am I missing something?