|Download Help (Windows Only)|
|Note: This topic applies to the following Measurement Studio editions: Enterprise, Professional.|
Implements a median filter.
Assembly: NationalInstruments.Analysis.Enterprise (in NationalInstruments.Analysis.Enterprise.dll) Version: 126.96.36.199153 (188.8.131.52153)
|Visual Basic (Declaration)|
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)> _ Public NotInheritable Class MedianFilter
[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)] public sealed class MedianFilter
Filter the input array using the following equation:
Yi = Median(Ji) for i = 0, 1, 2, ..., n - 1
Where Y represents the ouput sequence of the filtered data; n , is the number of elements in the input array; Ji, is a subset of the input array centered about the ith element of the array. The following equation describes Ji:
Where rl is the left rank and rr is the right rank.
The following illustration shows the computation of Yi:
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.