The OpenD Programming Language

median

Computes the median of slice.

By default, if F is not floating point type or complex type, then the result will have a double type if F is implicitly convertible to a floating point type or a type for which isComplex!F is true.

Can also pass a boolean variable, allowModify, that allows the input slice to be modified. By default, a reference-counted copy is made.

  1. meanType!(Slice!(Iterator, N, kind)) median(Slice!(Iterator, N, kind) slice)
    template median(bool allowModify = false)
    meanType!(Slice!(Iterator, N, kind))
    median
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
  2. template median(F, bool allowModify = false)
  3. meanType!(T[]) median(T[] ar)
  4. auto median(T withAsSlice)

Members

Functions

median
meanType!(Slice!(Iterator, N, kind)) median(Slice!(Iterator, N, kind) slice)

ditto

Parameters

allowModify

Allows the input slice to be modified, default is false

Return Value

the median of the slice

See Also

Meta