xcorrpvalue
Yields p value of the max value of a cross correlation by estimating what fraction of random permutations of one of the vectors yields a correlation equal or higher.
Cite As
Alex Backer (2024). xcorrpvalue (https://www.mathworks.com/matlabcentral/fileexchange/75403-xcorrpvalue), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.2 | This version accounts for the autocorrelation of either input series, preserving both in the random permutations, yielding the probability that any observed cross-correlation is not due to the autocorrelation of either input series. |
||
1.1.1 | Fixed bug that ignored input numvalues if provided. |
||
1.1 | Changed to use absolute value, so it detects negative correlations as well |
||
1.0.0 |