Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > QUEUE Functions

QUEUE ATTRIB AVERAGE(queue,quant) AVERAGE ATTRIBute in the QUEUE

Scroll Prev Top Next More

Returns the average attributes of oldest quant elements in queue.  If quant is less than or equal to 0, or if quant is bigger than the total number of elements in the queue the average over all elements is returned.

Restrictions: The first argument must be the name of a variable defined using QUEUE FIFO ATTRIB.  If you use any other variable as an argument QUEUE ATTRIB AVERAGE will return :NA:.

Units:QUEUE ATTRIB AVERAGE(queue,queue) --> attrib (returns the same units as attribute of the queue)

Example - see QUEUE FIFO ATTRIB

Availability: Not PLE or PLE Plus.

See also: QUEUE FIFO ATTRIB

Sample model: QUEUE ATTRIB functions.mdl in FunctionExamples