/// <summary> /// Computes the given sample raw moment. /// </summary> /// <param name="powers">The power to which each component should be raised.</param> /// <returns>The specified moment.</returns> /// <exception cref="ArgumentNullException"><paramref name="powers"/> is null.</exception> /// <exception cref="DimensionMismatchException">The length of <paramref name="powers"/> is not /// equal to the <see cref="Dimension"/> of the multivariate sample.</exception> public double RawMoment(IReadOnlyList <int> powers) { return(Multivariate.RawMoment(storage, powers)); }
/// <summary> /// Computes the given sample raw moment. /// </summary> /// <param name="powers">The power to which each component should be raised.</param> /// <returns>The specified moment.</returns> public double RawMoment(params int[] powers) { return(Multivariate.RawMoment(storage, powers)); }