pyecsca.sca.trace.match module¶
Provides functions for matching a pattern within a trace to it.
- match_pattern(trace, pattern, threshold=0.8)[source]¶
-
Return the indices where the pattern matches, e.g. those where correlation of the two traces has peaks larger than
threshold
. Uses thescipy.signal.find_peaks()
function.
- match_part(trace, offset, length, threshold=0.8)[source]¶
Match a part of a
trace
starting atoffset
oflength
to thetrace
.Returns indices where the pattern matches, e.g. those where correlation of the two traces has peaks larger than
threshold
. Uses thescipy.signal.find_peaks()
function.- Parameters:
- Return type:
List
[int
]- Returns:
Indices where the part of the trace matches matches.