MDE fit_dispersion

Usage

Run using mc_script MDE fit_dispersion after installation or using ~ndcn0236/bin/mc_script MDE fit_dispersion on jalapeno.

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

Documentation

Fit dispersing zeppelin model (single Bingham)

Functions

angles_from_dti(V1, V2, V3)

Returns the Euler angles based on DTI data

bingham_matrix(lk1, lk2, phi, theta, psi[, …])

Returns the Bingham matrix after rotation

clean(parameters, include_S0, non_central)

Cleans the parameters

params_to_error(params, observed, bmat_list)

Computes the error between the predicted and observed signal attenuations

params_to_non_central_logp(params, observed, …)

Computes the log(p) of the Non-central-chi fit to the data

params_to_signal(params, bmat_list[, …])

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

run(data, sidecar[, indices, dti_vectors, …])

Fits the dispersing zeppelin model to the observed signal attenuation

stick_dispersion(dstick, bmat, bingham[, …])

Returns the signal for dispersing sticks

swap_dispersion(res_fit[, nparams_per_shell])

Ensures that the dispersion along axis 2 is greater than across axis 1

zepp_to_signal(angles, params, bmat[, …])

Converts 4/5 parameters into a signal

CLI interface

add_to_parser(parser)

Creates the parser of the command line arguments

run_from_args(args)

Runs the script based on a Namespace containing the command line arguments

Classes

Fitter(data_list, bmat_list[, include_S0, …])