FilterRoutinesMovingAverage Method |
LightningChart .NET Help
Moving (floating) average. Smoothens the given data, by calculating using value and neighbor values
Namespace:
Arction.Wpf.SignalProcessing.Filtering
Assembly:
Arction.Wpf.SignalProcessing.SignalTools (in Arction.Wpf.SignalProcessing.SignalTools.dll) Version: 10.3.1
Syntaxpublic static double[] MovingAverage(
double[] values,
int windowLength
)
Public Shared Function MovingAverage (
values As Double(),
windowLength As Integer
) As Double()
public:
static array<double>^ MovingAverage(
array<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:
DoubleFiltered data
See Also