params_to_signal

Import in python using from mcutils.scripts.MDE.fit_dispersion import params_to_signal

mcutils.scripts.MDE.fit_dispersion.params_to_signal(params, bmat_list, include_S0=False, derivative=False)[source]

Converts parameters for one or more b-shells into a signal

First three parameters are the three angles defining the orientation for each component there are two more parameters with the: 1. log(k1) 2. log(k2) 3. d2-d1 4. MD - log(S_0) / b (or MD if S0 is also provided) 5. optionally S0

Parameters
  • params – (3 + 4/5 * N, ) array for N b-shells

  • bmat_list – (N, ) list of lists containing the b-matrices

  • include_S0 – include a parameter representing S0 rather than letting it be submerged in MD

  • derivative – also return the (N, ) tuple with (3 + 4/5 * N, M) array with the derivatives

Returns

(N, ) tuple of lists with the signal attenuations (or full signal if include_S0 is True)