covariance = np.cov(y1_interp, y2_interp)[0][1]
print('covariance is', covariance)

covariance is 0.00010861874695023591

This number shows how different my signal 2 (y2_interp) is from signal 1 (y1_interp). From this number I want to get a correction factor. By doing a mathematical operation of y2_interp with the correction factor, I need to make y2_interp to exactly overlap on y1_interp.

My questions:

  1. How to get the correction factor?
  2. What mathematical operation should I do with that and y2_interp in order to get y1_interp?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.