centralMoment

centralMoment
pure nothrow @property @nogc
(
R
)
(
R r
,
size_t k = 1
)
if (
isInputRange!R
)

Examples

auto a = [ 1.0f, 2, 3, 4 ];
assertEq( a.centralMoment(1), 0 );
assertEq( a.centralMoment(2), 1.25 );
assertEq( a.centralMoment(3), 0 );

Meta