ed2b80836fb92142143d8b7702d5519761671cf5,dipy/reconst/dki.py,,_ols_iter,#Any#Any#Any#Any#,700
Before Change
log_s = np.log(sig)
result = np.dot(inv_design, log_s)
D=result[:6]
tensor = from_lower_triangular(D)
MD_square = ((tensor[0,0] + tensor[1,1] + tensor[2,2])/3.)**2
K_elements=result[6:21]/MD_square
return decompose_tensors(tensor, K_elements,
After Change
evals, evecs = decompose_tensor(from_lower_triangular(DT_elements))
// Extracting kurtosis tensor
MD_square = (evals.mean(0))**2
KT_elements = result[6:21] / MD_square
dki_params = np.concatenate((evals, evecs[0], evecs[1], evecs[2],
KT_elements), axis=0)
return dki_params
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: nipy/dipy
Commit Name: ed2b80836fb92142143d8b7702d5519761671cf5
Time: 2015-07-08
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/dki.py
Class Name:
Method Name: _ols_iter
Project Name: nipy/dipy
Commit Name: 9419d215150bcb2679d5047ab53f88139702ac6e
Time: 2015-07-08
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/tests/test_dki.py
Class Name:
Method Name: _wls_iter
Project Name: nipy/dipy
Commit Name: a09d813649375dc159bcf6e1daf98ecc4cf4d980
Time: 2015-07-12
Author: garyfallidis@gmail.com
File Name: doc/examples/viz_slice.py
Class Name:
Method Name: