Correlate function scaling

Posts: 16
Joined: 2015-11-16
Location: United States

I'm trying to do cross correlations between two waves using the 'Correlate' command. I have a series of paired waves, and each pair may or may not be strongly correlated to the other. I want to get a result that says if the waves are identical, the max correlation is 1, if they have no correlation then the max correlation is 0. Autocorrelation scaling does not do this because it scales the center point to 1 no matter what. Any ideas?

JimProuty's picture
Posts: 662
Joined: 2007-07-19
Location: United States

From the help topic for the Correlate operation:

Note: To compute a single-value correlation number use the StatsCorrelation function which returns the Pearson's correlation coefficient of two same-length waves.

StatsCorrelation does what you want.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.

Back to top