Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | mathematics |
median is implemented the obvious way entirely in Glish, i.e. it sorts the values. More efficient implementations are possible if this turns out to be too inefficient (submit a gnat if you discover this to be true).
If is_sorted is set to T, the sorting is skipped for efficiency, but the results are undefined if the values are not actually sorted.
dots | The numbers to perform statistics on | ||
is_sorted | Set if the values are already sorted | ||
Allowed: | T/F | ||
Default: | F |
- include "statistics.g" + median(1:100) 50.5