def

func:median

median(val, acc)

Fold a sample of numbers into their median value which is the middle value of the sorted samples. If there are an even number of sample, then the median is the mean of the middle two. Null values are ignored. Return null if no values.

Example:

[2, 4, 5, 3, 1].fold(median)

meta

def func:median
disKey ui::median
foldOn Number
is func
lib lib:math
name median

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function