Skip to content

Commit

Permalink
Standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeuchi-screen committed Dec 31, 2023
1 parent 267d71f commit 47cd9d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lingam/utils/_f_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def f_correlation(x, y):
if y_.shape[0] != n:
raise ValueError("x and y must be the same size.")

# Standardize
x_ = (x_ - x_.mean()) / x_.std()
y_ = (y_ - y_.mean()) / y_.std()

X = [x_, y_]
m = len(X)

Expand Down

0 comments on commit 47cd9d0

Please sign in to comment.