1. A method for detecting correlations between signal patterns of a power signal used by an electronic device during execution of operations, the method comprising: using a processor for sampling a plurality of values of the power signal at corresponding sampling times, setting pairs of windows including respective pairs of sequences of the plurality of sampling values, and computing values of correlations between the respective pairs of sequences, each of the values of correlations being determined by computing a value of correlation between one sequence of the respective pairs of sequences and a plurality of sequences of sampled values included in corresponding moving windows, the moving windows being moved according to the formula: 
 s j k =S ( t ) ∀ tε[j·Bs+k ,( j+ 1)· Bs+k] kε[−Bs,Bs], wherein Bs represents the size of the moving window, S(t) is a power signal with respect to time, s is a sample value, and j is an index value.