a731dbfb00e17f59b55d0b36a14f69c65e9a849a,dipy/reconst/shm.py,,normalize_data,#Any#Any#Any#Any#,388

Before Change


    dwi = asarray(dwi, "float")
    b0 = data[..., where_b0].mean(-1)
    b0 = b0[..., None]
    b0 = asarray(b0, "float")

    maximum(dwi, min_signal, dwi)
    maximum(b0, min_signal, b0)
    dwi /= b0
    minimum(dwi, 1, dwi)
    return dwi

def gfa(samples):
    gfa of some function from a set of samples os that function

After Change



    out.clip(min_signal, out=out)
    b0 = out[..., where_b0].mean(-1)
    b0 = b0.reshape(b0.shape + (1,))
    out /= b0 
    return out

def gfa(samples):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: a731dbfb00e17f59b55d0b36a14f69c65e9a849a
Time: 2012-04-05
Author: Bago.Amirbekian@ucsf.edu
File Name: dipy/reconst/shm.py
Class Name:
Method Name: normalize_data


Project Name: dmlc/gluon-nlp
Commit Name: 1f9ad444b5dee8b2562b7bfa1cf9f576fa32a347
Time: 2020-07-31
Author: 37728728+ZheyuYe@users.noreply.github.com
File Name: src/gluonnlp/op.py
Class Name:
Method Name: updated_vectors_by_position


Project Name: adalca/neuron
Commit Name: 4d3ea76dcab0d44a9a58a2482cada4b7d5386726
Time: 2019-03-07
Author: adalca@mit.edu
File Name: neuron/layers.py
Class Name: MeanStream
Method Name: call