neat.CompartmentTree.compute_c¶
- CompartmentTree.compute_c(alphas, phimat, weights=None, tau_eps=5.0)[source]¶
Fit the capacitances to the eigenmode expansion
- Parameters:
alphas (np.ndarray of float or complex (shape=(K,))) – The eigenmode inverse timescales (1/s)
phimat (np.ndarray of float or complex (shape=(K,C))) – The eigenmode vectors (C the number of compartments)
weights (np.ndarray (shape=(K,)) or None) – The weights given to each eigenmode in the fit