neat.SOVTree.calc_impedance_matrix¶
- SOVTree.calc_impedance_matrix(freqs=None, loc_arg=None, sov_data=None, eps=0.0, mem_limit=500)[source]¶
Compute the impedance matrix for a set of locations
- Parameters:
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 arrayloc_arg (None or list of locations)
sov_data (None or tuple of mode matrices) – One of the keyword arguments
loc_argorsov_datamust not beNone. Ifloc_argis notNone, the importance is evaluated at these locations (seeneat.MorphTree.convert_loc_arg_to_locs()). Ifsov_datais 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
- 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)