pyecsca.sca.process module

pyecsca.sca.process.absolute(trace)[source]

Apply absolute value to samples of trace.

Parameters:trace (Trace) –
Return type:Trace
Returns:
pyecsca.sca.process.invert(trace)[source]

Invert(negate) the samples of trace.

Parameters:trace (Trace) –
Return type:Trace
Returns:
pyecsca.sca.process.threshold(trace, value)[source]

Map samples of the trace to 1 if they are above value or to 0.

Parameters:
  • trace (Trace) –
  • value
Return type:

Trace

Returns:

pyecsca.sca.process.rolling_mean(trace, window)[source]

Compute the rolling mean of trace using window. Shortens the trace by window - 1.

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

Trace

Returns:

pyecsca.sca.process.offset(trace, offset)[source]

Offset samples of trace by offset, sample-wise (Adds offset to all samples).

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

Trace

Returns:

pyecsca.sca.process.recenter(trace)[source]

Subtract the root mean square of the trace from its samples, sample-wise.

Parameters:trace (Trace) –
Return type:Trace
Returns:
pyecsca.sca.process.normalize(trace)[source]
Return type:Trace
pyecsca.sca.process.normalize_wl(trace)[source]
Return type:Trace