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
dki_params = np.concatenate((evals, evecs[0], evecs[1], evecs[2],
KT_elements), axis=0)
return dki_params
def wls_fit_dki(design_matrix, data, min_signal=1):
r
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
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: 872e8448f9cec2ddca1ef6042775d69fa3da8852
Time: 2017-04-19
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/dki_micro.py
Class Name: KurtosisMicrostructuralFit
Method Name: restricted_evals
Project Name: nipy/dipy
Commit Name: 64579d5faf035c6957719a274d137f7d12646050
Time: 2015-10-15
Author: dimrozakis@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: wls_fit_tensor
Project Name: nipy/dipy
Commit Name: 872e8448f9cec2ddca1ef6042775d69fa3da8852
Time: 2017-04-19
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/dki_micro.py
Class Name: KurtosisMicrostructuralFit
Method Name: hindered_evals
Project Name: nipy/dipy
Commit Name: 64579d5faf035c6957719a274d137f7d12646050
Time: 2015-10-15
Author: dimrozakis@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: ols_fit_tensor