File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,31 @@ def _dcgain(self, warn_infinite):
203
203
return zeroresp
204
204
205
205
def bandwidth (self , dbdrop = - 3 ):
206
+ """Evaluate the bandwidth of the LTI system for a given dB drop.
207
+
208
+ Evaluate the first frequency that the response magnitude is lower than
209
+ DC gain by dbdrop dB.
210
+
211
+ Parameters
212
+ ----------
213
+ dpdrop : float, optional
214
+ A strictly negative scalar in dB (default = -3) defines the
215
+ amount of gain drop for deciding bandwidth.
216
+
217
+ Returns
218
+ -------
219
+ bandwidth : ndarray
220
+ The first frequency (rad/time-unit) where the gain drops below
221
+ dbdrop of the dc gain of the system, or nan if the system has
222
+ infinite dc gain, inf if the gain does not drop for all frequency
223
+
224
+ Raises
225
+ ------
226
+ TypeError
227
+ if 'sys' is not an SISO LTI instance
228
+ ValueError
229
+ if 'dbdrop' is not a negative scalar
230
+ """
206
231
# check if system is SISO and dbdrop is a negative scalar
207
232
if not self .issiso ():
208
233
raise TypeError ("system should be a SISO system" )
You can’t perform that action at this time.
0 commit comments