diff --git a/CHANGELOG b/CHANGELOG index 718569f584..6e8e694308 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -20,7 +20,7 @@ v2.3.0 (XXXX-XX-XX) * added AQL string functions `LTRIM`, `RTRIM`, `FIND_FIRST`, `FIND_LAST`, `SPLIT`, `SUBSTITUTE` -* added AQL functions `ZIP` and `VALUES` +* added AQL functions `ZIP`, `VALUES` and `PERCENTILE` * made AQL functions `CONCAT` and `CONCAT_SEPARATOR` work with list arguments diff --git a/Documentation/Books/Users/Aql/ListFunctions.mdpp b/Documentation/Books/Users/Aql/ListFunctions.mdpp index 7b297104cf..e01da19f0b 100644 --- a/Documentation/Books/Users/Aql/ListFunctions.mdpp +++ b/Documentation/Books/Users/Aql/ListFunctions.mdpp @@ -48,6 +48,12 @@ AQL supports the following functions to operate on list values: list is empty or only *null* values are contained in the list, the function will return *null*. +- *PERCENTILE(list, n, method)*: Returns the *n*th percentile of the values in *list*. + This requires the elements in *list* to be numbers. *null* values are ignored. *n* must + be between 0 (excluded) and 100 (included). *method* can be *rank* or *interpolation*. + The function will return null if the list is empty or only *null* values are contained + in it or the percentile cannot be calculated. + - *VARIANCE_POPULATION(list)*: Returns the population variance of the values in *list*. This requires the elements in *list* to be numbers. *null* values are ignored. If the list is empty or only *null* values are contained in the list, @@ -169,4 +175,4 @@ AQL supports the following functions to operate on list values: Apart from these functions, AQL also offers several language constructs (e.g. -*FOR*, *SORT*, *LIMIT*, *COLLECT*) to operate on lists. \ No newline at end of file +*FOR*, *SORT*, *LIMIT*, *COLLECT*) to operate on lists.