Skip to content

Commit ab68562

Browse files
committed
add docstring to lti.bandwidth
1 parent 02172b7 commit ab68562

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

control/lti.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,31 @@ def _dcgain(self, warn_infinite):
203203
return zeroresp
204204

205205
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+
"""
206231
# check if system is SISO and dbdrop is a negative scalar
207232
if not self.issiso():
208233
raise TypeError("system should be a SISO system")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy