/// <inheritdoc/> public override double RawMoment(int r) { if (r < 0) { throw new ArgumentOutOfRangeException(nameof(r)); } else { double[] central = CentralMoments(r); return(MomentMath.CentralToRaw(a, central, r)); } }
/// <inheritdoc /> public override double RawMoment(int r) { if (r < 0) { throw new ArgumentOutOfRangeException(nameof(r)); } else if (r == 0) { return(1.0); } else if (r == 1) { return(Mean); } else { double[] C = CentralMoments(r); return(MomentMath.CentralToRaw(Mean, C, r)); } }