Aggregation functions
Aggregation functions take between 2 and 255 parameters, and result in a single value.
Min¶
Minimum of a list
Example:
Max¶
Maximum of a list
Example:
Mean¶
Mean average of a list
Example:
Median¶
Median average of a list
Example:
The median is the “middle” entry when the numbers are sorted in order. If there is an even number of entries the median is the mean of the 2 middle entries.
Mode¶
The Modal average of a list
For example:
This expression returns 2.
The mode is undefined if there is a tie but by convention we return the first tied candidate.
For example:
This expression returns 3.
RankCoeff¶
Returns a value between -1 and 1 as a result of calculating a series of values (number or date) using the Spearman Rank Coefficient
For example:
This expression will return a value of 1.
This expression will return a value of -0.5.
RankSequence¶
Returns a value based upon the sequence of a series of numbers or dates
If all values are equal then a value of 3 is returned
If the values are increasing with no ties then a value of 2 is returned
If the values are increasing with ties then a value of 1 is returned
If the values have no order then a value of 0 is returned
If the values are decreasing with ties then a value of -1 is returned
If the values are decreasing with no ties then a value of -2 is returned
StdDev¶
Standard deviation average of a list
Example:
Sum¶
Sum of values
For example:
This expression returns 100.