mir-algorithm — Libmir Archive
Libmir Archive
API Reference Index
mir-algorithm Guide
Dlang.org
center.center
mir
math
stat
center
Computes the central tendency of a slice, defaulting to mean, with an optional custom measure.
auto
center
(Slice!(Iterator, N, kind) slice)
template
center
(alias centralTendency = mean!(Summation.appropriate))
auto
center
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
slice
)
auto
center
(T x)
Parameters
slice
Slice
!(
Iterator
,
N
,
kind
)
slice
mir
math
stat
center
functions
center
Computes the central tendency of a slice, defaulting to mean, with an optional custom measure.