Skip to content

Commit

Permalink
BUG: forgot standardize True
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Jan 22, 2024
1 parent 5e088db commit 1c3fd3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ants/utils/quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def butter_bandpass_filter(data, lowcut, highcut, fs, order ):
matrix[:,k], lowf, highf, fs, order=order )
return matrixOut

def clean_data(arr, standardize=False):
def clean_data(arr, standardize=True):
"""
Remove columns from a NumPy array that have no variation or contain NA/Inf values.
Optionally standardize the remaining data.
Expand Down Expand Up @@ -432,7 +432,7 @@ def compute_tSTD(M, quantile, x=0, axis=0):
# M = M / compute_tSTD(M, 1.)['tSTD']
# "The covariance matrix C = MMT was constructed and decomposed into its
# principal components using a singular value decomposition."
M = clean_data( M )
M = clean_data( M, standardize=True )
u, _, _ = linalg.svd(M, full_matrices=False)
if components is None:
components = u[:, :ncompcor]
Expand Down

0 comments on commit 1c3fd3d

Please sign in to comment.