Average

Syntax

Average(Parameters: Array)

Parameters

Parameters. Variable.

Description

It returns the average value of specified variable points.

Comments

If more than one variable is specified in Parameters, then the mean of corresponding variable points will be calculated. For example, the mean of variables for 2018 by all variables.

Variables in Parameters must be specified via comma.

It is available to set up calculation period for function. To do it, use the SetPeriod function by specifying it at any place of input array.

To calculate function without taking into account empty values, use the IgnoreMissing parameter by specifying it at any place of input array. Available parameter values:

Example

Formula Result Application
= Average({Brazil|BCA}, SetPeriod(2000,2010)) The mean value of the Brazil|BCA series observations is calculated for the period from 2000 to 2010. It can be used in formulas of calculated series of time series database and in formulas of attribute-based models of modeling container.
= Average(X1,X2,False) The mean of X1 and X2 factor points is calculated taking into account empty values. It is used in model variable-based formulas of modeling container.
= Average(1, 2, 3, 4) 2.5 It can be used in any expressions.

See also:

Functions Available in Expression Editor │ Arithmetic Functions │ IModelling.Average