class_docstr: A `scipy.signal.butter`-based generic filter class.
class_docstr_tok: ["A","`","scipy.signal.butter","`","-based","generic","filter","class","."]
docstr: :param min_center_freq: Minimum center frequency in hertz
  :param max_center_freq: Maximum center frequency in hertz
  :param min_bandwidth_fraction: Minimum bandwidth fraction relative to center
      frequency (number between 0.0 and 2.0)
  :param max_bandwidth_fraction: Maximum bandwidth fraction relative to center
      frequency (number between 0.0 and 2.0)
  :param min_rolloff: Minimum filter roll-off (in dB/octave).
      Must be a multiple of 6
  :param max_rolloff: Maximum filter roll-off (in dB/octave)
      Must be a multiple of 6
  :param p: The probability of applying this transform
docstr_tok: [":","param","min_center_freq",":","Minimum","center","frequency","in","hertz",":","param","max_center_freq",":","Maximum","center","frequency","in","hertz",":","param","min_bandwidth_fraction",":","Minimum","bandwidth","fraction","relative","to","center","frequency","(","number","between","0.0","and","2.0",")",":","param","max_bandwidth_fraction",":","Maximum","bandwidth","fraction","relative","to","center","frequency","(","number","between","0.0","and","2.0",")",":","param","min_rolloff",":","Minimum","filter","roll-off","(","in","dB\/octave",")",".","Must","be","a","multiple","of","6",":","param","max_rolloff",":","Maximum","filter","roll-off","(","in","dB\/octave",")","Must","be","a","multiple","of","6",":","param","p",":","The","probability","of","applying","this","transform"]
code: def initialize_two_sided_filter(
      self,
      min_center_freq,
      max_center_freq,
      min_bandwidth_fraction,
      max_bandwidth_fraction,
  ):
      """
      :param min_center_freq: Minimum center frequency in hertz
      :param max_center_freq: Maximum center frequency in hertz
      :param min_bandwidth_fraction: Minimum bandwidth fraction relative to center
          frequency (number between 0.0 and 2.0)
      :param max_bandwidth_fraction: Maximum bandwidth fraction relative to center
          frequency (number between 0.0 and 2.0)
      :param min_rolloff: Minimum filter roll-off (in dB/octave).
          Must be a multiple of 6
      :param max_rolloff: Maximum filter roll-off (in dB/octave)
          Must be a multiple of 6
      :param p: The probability of applying this transform
      """
  
      self.min_center_freq = min_center_freq
      self.max_center_freq = max_center_freq
      self.min_bandwidth_fraction = min_bandwidth_fraction
      self.max_bandwidth_fraction = max_bandwidth_fraction
  
      if self.min_center_freq > self.max_center_freq:
          raise ValueError(
              "min_center_freq must not be greater than max_center_freq"
          )
      if self.min_bandwidth_fraction <= 0.0:
          raise ValueError(
              "min_bandwidth_fraction must be a positive number"
          )
      if self.max_bandwidth_fraction >= 2.0:
          raise ValueError(
              "max_bandwidth_fraction should be smaller than 2.0, since otherwise"
              " the low cut frequency of the band can be smaller than 0 Hz."
          )
      if self.min_bandwidth_fraction > self.max_bandwidth_fraction:
          raise ValueError(
              "min_bandwidth_fraction must not be greater than max_bandwidth_fraction"
          )
  
file_path: audiomentations/audiomentations/augmentations/base_butterword_filter.py
imports: import random
  import numpy
  from numpy.typing import NDArray
  from scipy.signal import butter, sosfilt, sosfiltfilt, sosfilt_zi
  from audiomentations.core.transforms_interface import BaseWaveformTransform
  from audiomentations.core.utils import convert_frequency_to_mel, convert_mel_to_frequency
label_desc: Use image node_id 3 for calling the BaseButterworthFilter obj's underlying member method code with example usage: obj.initialize_two_sided_filter(min_center_freq, max_center_freq, min_bandwidth_fraction, max_bandwidth_fraction) without return types