neat.CompartmentTree.calcImpedanceMatrix¶
-
CompartmentTree.
calcImpedanceMatrix
(freqs=0.0, channel_names=None, indexing='locs', use_conc=False)[source]¶ Constructs the impedance matrix of the model for each frequency provided in freqs. This matrix is evaluated at the equilibrium potentials stored in each node
- Parameters
freqs (np.array (dtype = complex) or float) – Frequencies at which the matrix is evaluated [Hz]
channel_names (
None
(default) or list of str) – The channels to be included in the matrix. IfNone
, all channels present on the tree are included in the calculationuse_conc (bool) – wheter or not to use the concentration dynamics
indexing ('tree' or 'locs') – Whether the indexing order of the matrix corresponds to the tree nodes (order in which they occur in the iteration) or to the locations on which the reduced model is based
- Returns
The first dimension corresponds to the frequency, the second and third dimension contain the impedance matrix for that frequency
- Return type
np.ndarray (ndim = 3, dtype = complex)