{ } Raw JSON

bundles / scipy 1.17.1 / scipy / signal / _filter_design / ellipap

function

scipy.signal._filter_design:ellipap

source: /scipy/signal/_filter_design.py :4951

Signature

def   ellipap ( N rp rs * xp = None device = None )

Summary

Return (z,p,k) of Nth-order elliptic analog lowpass filter.

Extended Summary

The filter is a normalized prototype that has rp decibels of ripple in the passband and a stopband rs decibels down.

The filter's angular (e.g., rad/s) cutoff frequency is normalized to 1, defined as the point at which the gain first drops below -rp.

Parameters

N : int

The order of the filter

rp : float

The passband ripple intensity

rs : float

The stopband attenuation

xp : array_namespace, optional

Optional array namespace. Should be compatible with the array API standard, or supported by array-api-compat. Default: numpy

device: any

optional device specification for output. Should match one of the supported device specification in xp.

Returns

z : ndarray[complex128]

Zeros of the transfer function.

p : ndarray[complex128]

Poles of the transfer function.

k : float

Gain of the transfer function.

Notes

Array API Standard Support

ellipap has experimental support for Python Array API Standard compatible backends in addition to NumPy. Please consider testing these features by setting an environment variable SCIPY_ARRAY_API=1 and providing CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following combinations of backend and device (or other capability) are supported.

====================  ====================  ====================
Library               CPU                   GPU
====================  ====================  ====================
NumPy                 ✅                     n/a                 
CuPy                  n/a                   ✅                   
PyTorch               ✅                     ✅                   
JAX                   ✅                     ✅                   
Dask                  ✅                     n/a                 
====================  ====================  ====================

See dev-arrayapi for more information.

See also

ellip

Filter design function using this prototype

Aliases

  • scipy.signal.ellipap

Referenced by

This package