def sosfreqd(sos, worN=None, whole=False):
 (sos, n_sections) = _validate_sos(sos)
 if (n_sections == 0):
  raise ValueError('Cannot compute frequencies with no sections')
 h = 1.0
 for row in sos:
  (w, rowh) = freqd(row[:3], row[3:], worN=worN, whole=whole)
  h *= rowh
 return (w, h)

def sosfreqd ( sos , worN = None , whole = False ) : ( sos , n_sections ) = _validate_sos ( sos ) if ( n_sections == 0 ) : raise ValueError ( 'Cannot compute frequencies with no sections' ) h = 1.0 for row in sos : ( w , rowh ) = freqd ( row [ : 3 ] , row [ 3 : ] , worN = worN , whole = whole ) h *= rowh return ( w , h )
compute the frequency response of a digital filter in sos format .