Skip to content

Commit

Permalink
add doc to xicor
Browse files Browse the repository at this point in the history
  • Loading branch information
janoPig committed Aug 31, 2024
1 parent 741eaff commit af261cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions HROCH/hroch.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,21 @@ def __repr__(self):
Xicor64.restype = ctypes.c_double

def Xicor(X : numpy.ndarray, Y:numpy.ndarray):
"""
Xicor corelation coefficient.
This function computes the xi coefficient between two vectors x and y.
Parameters
----------
X : array-like input vector x
Y : array-like input vector y
Returns
-------
xi : float
"""
if X.ndim != 1:
X = numpy.ravel(X)
if Y.ndim != 1:
Expand Down

0 comments on commit af261cd

Please sign in to comment.