Performs the constrained search for the linear parameters f after
the estimation of x is done. Estimation of the linear parameters f
is a constrained linear least-squares optimization problem solved by
using a convex optimizer from cvxpy. The IVIM equation contains two
parameters that depend on the same volume fraction. Both are estimated
as separately in the convex optimizer.
Parameters
———-
phi : array
Constructs the objective for the :func: stoc_search_cost.
First calculates the Moore-Penrose inverse of the input phi and takes
a dot product with the measured signal. The result obtained is again
multiplied with phi to complete the projection of the variable into
a transformed space. (see [1]_ and [2]_ for thorough discussion on
Variable Projections and relevant cost functions).
Parameters
———-
phi : array
Cost function for the least square problem. The cost function is used
in the Least Squares function of SciPy in :func: fit. It guarantees
that stopping point of the algorithm is at least a stationary point
with reduction in the the number of iterations required by the
differential evolution optimizer.
Parameters
———-
x_f : array
Contains the parameters ‘x’ and ‘f’ combines in the same array.
Creates a structure for the combining the diffusion and pseudo-
diffusion by multiplying with the bvals and then exponentiating each of
the two components for fitting as per the IVIM- two compartment model.
Parameters
———-
Cost function for differential evolution algorithm. Performs a
stochastic search for the non-linear parameters ‘x’. The objective
function is calculated in the :func: ivim_mix_cost_one. The function
constructs the parameters using :func: phi.
Parameters
———-
x : array
Splits the array of parameters in x_f to ‘x’ and ‘f’ for performing
a search on the both of them independently using the Trust Region
Method.
Parameters
———-
x_f : array
Combined array of parameters ‘x’ and ‘f’ parameters.
Performs the constrained search for the linear parameters f after
the estimation of x is done. Estimation of the linear parameters f
is a constrained linear least-squares optimization problem solved by
using a convex optimizer from cvxpy. The IVIM equation contains two
parameters that depend on the same volume fraction. Both are estimated
as separately in the convex optimizer.
Constructs the objective for the :func: stoc_search_cost.
First calculates the Moore-Penrose inverse of the input phi and takes
a dot product with the measured signal. The result obtained is again
multiplied with phi to complete the projection of the variable into
a transformed space. (see [1]_ and [2]_ for thorough discussion on
Variable Projections and relevant cost functions).
Creates a structure for the combining the diffusion and pseudo-
diffusion by multipling with the bvals and then exponentiating each of
the two components for fitting as per the IVIM- two compartment model.
Cost function for SHGO algorithm. Performs an approximation of the
homology groups of a complex built on a hypersurface homeomorphic to a
complex on the objective function for the non-linear parameters ‘x’.
The objective funtion is calculated in the :func: ivim_shgo.
The function constructs the parameters using :func: phi.
Splits the array of parameters in x_f to ‘x’ and ‘f’ for performing
a search on the both of them independently using the simplicial
homology optimizer (SHGO).