6704c535b8c59ab3b9b98c0489a051654c1ee727,nisl/signals.py,,_standardize,#Any#Any#Any#,12
Before Change
=======
std_signals: copy of signals, normalized.
signals = np.array(signals).astype(np.float)
buf = signals.T
buf -= signals.mean(axis=-1)
if normalize:
After Change
if not detrend:
signals -= signals.mean(axis=0)
std = np.sqrt((signals ** 2).sum(axis=0))
std[std < np.finfo(np.float).eps] = 1. // avoid numerical problems
signals /= std
return signals
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nilearn/nilearn
Commit Name: 6704c535b8c59ab3b9b98c0489a051654c1ee727
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/signals.py
Class Name:
Method Name: _standardize
Project Name: reinforceio/tensorforce
Commit Name: ce961ed06c22bf7c1178162450a88174fb401c14
Time: 2017-11-25
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/core/preprocessing/standardize.py
Class Name: Standardize
Method Name: process
Project Name: nipy/dipy
Commit Name: 0cdade2e4c3a5b946e82b366efd4e778bcd96e82
Time: 2017-06-20
Author: arokem@gmail.com
File Name: doc/examples/denoise_localpca.py
Class Name:
Method Name: