rawMoment

rawMoment
pure nothrow @property @nogc
(
R
)
(
R r
,
size_t k = 1
)
if (
isInputRange!R
)
in { assert (!r.empty); }

Examples

auto a = [ 1.0f, 2 ];
assertEq( a.rawMoment, 1.5 );
assertEq( a.rawMoment(2), 2.5 );

Meta