neat.CompartmentFitter.plotKernels

CompartmentFitter.plotKernels(alphas=None, phimat=None, t_arr=None, recompute=False, pprint=False)[source]

Plots the impedance kernels. The kernel at the position i,j represents the transfer impedance kernel between compartments i and j.

Parameters
  • 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

  • t_arr (np.array) – The time-points at which the to be plotted kernels are evaluated. Default is np.linspace(0.,200.,int(1e3))

  • recompute (bool) – Force recomputing the SOV expansion if True (only if alphas or phimat are None)

  • 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