StatisticsMovingAverage Method |
Evaluates the sample mean over a moving window, for each samples.
Returns NaN if no data is empty or if any entry is NaN.
Namespace: Altaxo.Calc.StatisticsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<double> MovingAverage(
this IEnumerable<double> samples,
int windowSize
)
Parameters
- samples IEnumerableDouble
- The sample stream to calculate the mean of.
- windowSize Int32
- The number of last samples to consider.
Return Value
IEnumerableDouble[Missing <returns> documentation for "M:Altaxo.Calc.Statistics.Statistics.MovingAverage(System.Collections.Generic.IEnumerable{System.Double},System.Int32)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also