pyecsca.sca.sampling module

pyecsca.sca.sampling.downsample_average(trace, factor=2)[source]

Downsample samples of trace by factor by averaging factor consecutive samples in non-intersecting windows.

Parameters:
  • trace (Trace) –
  • factor (int) –
Return type:

Trace

Returns:

pyecsca.sca.sampling.downsample_pick(trace, factor=2, offset=0)[source]

Downsample samples of trace by factor by picking each factor-th sample, starting at offset.

Parameters:
  • trace (Trace) –
  • factor (int) –
  • offset (int) –
Return type:

Trace

Returns:

pyecsca.sca.sampling.downsample_decimate(trace, factor=2)[source]

Downsample samples of trace by factor by decimating.

Parameters:
  • trace (Trace) –
  • factor (int) –
Return type:

Trace

Returns: