Skip to content

Commit

Permalink
add code snipet to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
drombas authored Jun 1, 2022
1 parent c8051c7 commit 038c54e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Chaterjee's xi correlation for MATLAB
An implementation of Chaterjee's xi correlation in MATLAB

````
x = linspace(0, 20, 1000);
y = cos(x) + 0.3*randn(1, 1000);
xi = xicor(x, y);
````

The difference between Pearson's and xi-correlation:
![Image description](fig_example.jpg)

Expand Down

0 comments on commit 038c54e

Please sign in to comment.