neat.SOVTree.calcImpedanceMatrix¶
-
SOVTree.
calcImpedanceMatrix
(locarg=None, sov_data=None, name=None, eps=0.0001, mem_limit=500, freqs=None)[source]¶ Compute the impedance matrix for a set of locations
- Parameters
locarg (None or list of locations) –
sov_data (None or tuple of mode matrices) – One of the keyword arguments
locarg
orsov_data
must not beNone
. Iflocarg
is notNone
, the importance is evaluated at these locations (seeneat.MorphTree._parseLocArg()
). Ifsov_data
is notNone
, it is a tuple of a vector of the reciprocals of the mode timescales and a matrix with the corresponding spatial mode functions.eps (float) – the cutoff threshold in relative importance below which modes are truncated
mem_limit (int) – parameter governs whether the fast (but memory intense) method or the slow method is used
freqs (np.ndarray of complex or None (default)) – if
None
, returns the steady state impedance matrix, if a array of complex numbers, returns the impedance matrix for each Fourrier frequency in the array
- Returns
the impedance matrix, steady state if freqs is
None
, the frequency dependent impedance matrix if freqs is given, with the frequency dependence at the first dimension[MOhm ]
- Return type
np.ndarray of floats (ndim = 2 or 3)