neat.CompartmentFitter.get_kernels

CompartmentFitter.get_kernels(fit_arg, alphas=None, phimat=None, pprint=False)[source]

Returns the impedance kernels as a double nested list of “neat.Kernel”. The element at the position i,j represents the transfer impedance kernel between compartments i and j.

If one of the alphas and or phimat are not provided, these SOV matrices are recomputed.

Parameters:
  • fit_arg (see docstring of CompartmentFitter.convert_fit_args()) – Specifying the compartmentree for which the kernels have to be computed.

  • alphas (np.array) – The exponential coefficients, as follows from the SOV expansion

  • phimat (np.ndarray (dim=2)) – The matrix to compute the exponential prefactors, as follows from the SOV expansion

  • pprint (bool) – Is verbose if True

Returns:

  • k_orig (list of list of neat.Kernel) – The kernels of the full model

  • k_comp (list of list of neat.Kernel) – The kernels of the reduced model (i.e. of the compartment tree)