mirror of https://gitee.com/bigwinds/arangodb
issue #1068: added PERCENTILE function
This commit is contained in:
parent
ac667d5e5a
commit
d1d176d2fd
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
*FOR*, *SORT*, *LIMIT*, *COLLECT*) to operate on lists.
|
||||
|
|
Loading…
Reference in New Issue