-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -278,7 +278,7 @@ def two_stage(data, gtab, x0, | |
# The guess for f is given by 1 - S0/C, where S0 is the data(b = 0) value | ||
|
||
C = data[..., gtab.bvals == split_b][0] - D_guess * split_b | ||
f_guess = data[..., 0] / C | ||
f_guess = 1.0 - data[..., 0] / C | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
arokem
Contributor
|
||
x0[..., 1] = f_guess | ||
|
||
return one_stage(data, gtab, x0, jac, bounds, tol, routine, algorithm, | ||
|
I think you need to have it
1-C/data[...,0]
because C (intercept of the diffusion only) is < data[...,0](intercept of the perfusion+diffusion).Also, does the normal DTI fit not potentially return an intercept? The way you're calculating C seems a little fishy although maybe that's because I haven't digested it fully yet.