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
raise ValueError("out must be floating point")
out[:] = data
out.clip(min_signal, out=out)
b0 = out[..., where_b0].mean(-1)
b0 = b0.reshape(b0.shape + (1,))
out /= b0
return out