#NEWLINE# def rmsGain( H , f1 , f2 , N = 100 ) : #NEWLINE# #INDENT# 'Compute the root mean-square gain of a discrete-time TF.\n\n    The computation is carried out over the frequency band ``(f1, f2)``,\n    employing ``N`` discretization steps.\n\n    **Parameters:**\n\n    H : object\n        The discrete-time transfer function. See  :func:`evalTF` for the supported types.\n\n    f1 : scalar\n        The start value in Hertz of the frequency band over which the gain is evaluated.\n\n    f2 : scalar\n        The end value (inclusive) in Hertz of the aforementioned frequency band.\n\n    N : integer, optional\n        The number of discretization points to be taken over specified interval.\n\n    **Returns:**\n\n    Grms : scalar\n        The root mean-square gain\n    ' #NEWLINE# w = np . linspace ( ( ( 2 * np . pi ) * f2 ) , ( ( 2 * np . pi ) * f2 ) , N ) #NEWLINE# g = ( norm ( evalTF ( H , np . exp ( ( 1j * w ) ) ) ) / np . sqrt ( N ) ) #NEWLINE# return g