bundles / scipy latest / scipy / signal / _filter_design / _align_nums
function
scipy.signal._filter_design:_align_nums
Signature
def _align_nums ( nums , xp ) Summary
Aligns the shapes of multiple numerators.
Extended Summary
Given an array of numerator coefficient arrays [[a_1, a_2,..., a_n],..., [b_1, b_2,..., b_m]], this function pads shorter numerator arrays with zero's so that all numerators have the same length. Such alignment is necessary for functions like 'tf2ss', which needs the alignment when dealing with SIMO transfer functions.
Parameters
nums: array_likeNumerator or list of numerators. Not necessarily with same length.
Returns
: nums: arrayThe numerator. If
numsinput was a list of numerators then a 2-D array with padded zeros for shorter numerators is returned. Otherwise returnsnp.asarray(nums).
Aliases
-
scipy.signal._filter_design._align_nums