I want to compute the pearson correlation for an array of signals. So, for instance, if I have a list of 10 signals with 50 points and I want to compare it to my reference signal with also 50 points, how can I do that without using a for loop? It's important for me to avoid using a loop for computational cost purposes.
for i in range of (0, 10):
correlation[i] = pearsonr(signals[i], reference_signal)[0]
my goal is to have a correlation list (length = 10) with the correlation between each signal and the reference signal.
Thank you in advance for the help.