Click or drag to resize

FilterRoutinesMovingAverage Method

LightningChart .NET Help
Moving (floating) average. Smoothens the given data, by calculating using value and neighbor values

Namespace:  Arction.WinForms.SignalProcessing.Filtering
Assembly:  Arction.WinForms.SignalProcessing.SignalTools (in Arction.WinForms.SignalProcessing.SignalTools.dll) Version: 10.3.1
Syntax
public static double[] MovingAverage(
	double[] values,
	int windowLength
)

Parameters

values
Type: SystemDouble
Input values
windowLength
Type: SystemInt32
Averaging window length. Calculates output as average of each value and neighbours in range -windowLength/2...+windowLength/2

Return Value

Type: Double
Filtered data
See Also