pyecsca.sca.trace.filter module

Provides functions for filtering traces using digital (low/high/band)-pass and bandstop filters.

filter_lowpass(trace, sampling_frequency, cutoff)[source]

Apply a lowpass digital filter (Butterworth) to trace, given sampling_frequency and cutoff frequency.

Parameters:
  • trace (Trace)

  • sampling_frequency (int)

  • cutoff (int)

Return type:

Trace

Returns:

filter_highpass(trace, sampling_frequency, cutoff)[source]

Apply a highpass digital filter (Butterworth) to trace, given sampling_frequency and cutoff frequency.

Parameters:
  • trace (Trace)

  • sampling_frequency (int)

  • cutoff (int)

Return type:

Trace

Returns:

filter_bandpass(trace, sampling_frequency, low, high)[source]

Apply a bandpass digital filter (Butterworth) to trace, given sampling_frequency, with the passband from low to high.

Parameters:
  • trace (Trace)

  • sampling_frequency (int)

  • low (int)

  • high (int)

Return type:

Trace

Returns:

filter_bandstop(trace, sampling_frequency, low, high)[source]

Apply a bandstop digital filter (Butterworth) to trace, given sampling_frequency, with the stopband from low to high.

Parameters:
  • trace (Trace)

  • sampling_frequency (int)

  • low (int)

  • high (int)

Return type:

Trace

Returns: