Table of Contents

Class FilteredWaveform

Namespace
Loehnert.Waveforms.Filtering
Assembly
Loehnert.Waveforms.dll

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 IWaveform

Waveform to be filtered.

filter IOnlineFilter

On-line filter implementation.

newKey string

Key of the filtered output waveform.

Properties

XUnit

Gets the x unit.

public override string XUnit { get; }

Property Value

string

YUnit

Gets the y unit.

public override string YUnit { get; }

Property Value

string