elastic / tinymath

A tiny arithmetic expression evaluator with pluggable functions
Apache License 2.0
21 stars 16 forks source link

Add quantile function #34

Open shaharmor opened 6 years ago

shaharmor commented 6 years ago

Hi,

One of the missing functions in tinymath is the option to get a specific quantile of a list of values.

For example: quantile(arr, 0.95) for the 95th percentile.

Similar to quantileSeq

rashidkpc commented 6 years ago

Should be pretty easy to implement. If you're interested in writing it, we'd totally take a pull