39ddc5f5d2cb75be64204438d60dd3a45d4c300f,dipy/sims/voxel.py,,multi_tensor_pdf,#Any#Any#Any#Any#Any#,531

Before Change


        mevals = [None, ] * len(mf)

    if mevecs is None:
        mevecs = [np.eye(3) for i in range(len(mf))]

    for j, f in enumerate(mf):
        pdf += f * single_tensor_pdf(pdf_points,

After Change


    else:
        sticks = [sphere2cart(1, np.deg2rad(pair[0]), np.deg2rad(pair[1]))
                  for pair in angles]
        sticks = np.array(sticks)

    pdf = np.zeros(len(pdf_points))

    mevecs = []
    for s in sticks:
        mevecs += [all_tensor_evecs(s).T]

    for j, f in enumerate(mf):
        pdf += f * single_tensor_pdf(pdf_points,
                                     evals=mevals[j], evecs=mevecs[j], tau=tau)
    return pdf
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 39ddc5f5d2cb75be64204438d60dd3a45d4c300f
Time: 2013-12-21
Author: garyfallidis@gmail.com
File Name: dipy/sims/voxel.py
Class Name:
Method Name: multi_tensor_pdf


Project Name: bashtage/linearmodels
Commit Name: 030fd1ceec2b42c580d0a79c8a256c5114a59dc3
Time: 2018-09-10
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/system/covariance.py
Class Name: HeteroskedasticCovariance
Method Name: __init__


Project Name: iskandr/fancyimpute
Commit Name: 9439f5215fde61ee40910b0320ff4dd8d28571e2
Time: 2016-01-10
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/bayesian_ridge_regression.py
Class Name: BayesianRidgeRegression
Method Name: fit