Class FilteredWaveform
Represents a wrapper around IWaveform to filter a waveform.
public class FilteredWaveform : Waveform, IWaveformWithUnits, IWaveform, IHasKey
- Inheritance
-
FilteredWaveform
- Implements
- Inherited Members
Examples
This example creates a waveform that is filtered by a Median filter.
var medianFilteredWaveform = new FilteredWaveform(
waveform: unfilteredWaveform,
filter: new MathNet.Filtering.Median.OnlineMedianFilter(windowSize: 9),
newKey: "Median"));
Remarks
This wrapper supports online filtering. This means, that changes of the waveform to filtered are detected, and the filtered waveform is live updated.
Constructors
FilteredWaveform(IWaveform, IOnlineFilter, string)
Initializes a new instance of the FilteredWaveform class.
public FilteredWaveform(IWaveform waveform, IOnlineFilter filter, string newKey = null)
Parameters
waveform
IWaveformWaveform to be filtered.
filter
IOnlineFilterOn-line filter implementation.
newKey
stringKey of the filtered output waveform.
Properties
XUnit
Gets the x unit.
public override string XUnit { get; }
Property Value
YUnit
Gets the y unit.
public override string YUnit { get; }