Ejemplo n.º 1
0
 def filter_butterworth(self, cutoff_frequency_ratio=None, type='low',
                        order = 2):
     '''Butterworth filter'''
     smoother = ButterworthFilter(self)
     if cutoff_frequency_ratio is not None:
         smoother.cutoff_frequency_ratio = cutoff_frequency_ratio
         smoother.apply()
     else:
         smoother.edit_traits()
Ejemplo n.º 2
0
 def filter_butterworth(self,
                        cutoff_frequency_ratio=None,
                        type='low',
                        order=2):
     """Butterworth filter in place.
     Raises
     ------
     SignalDimensionError if the signal dimension is not 1.
     """
     self._check_signal_dimension_equals_one()
     smoother = ButterworthFilter(self)
     if cutoff_frequency_ratio is not None:
         smoother.cutoff_frequency_ratio = cutoff_frequency_ratio
         smoother.apply()
     else:
         smoother.edit_traits()
Ejemplo n.º 3
0
 def filter_butterworth(self,
                        cutoff_frequency_ratio=None,
                        type='low',
                        order=2):
     """Butterworth filter in place.
     Raises
     ------
     SignalDimensionError if the signal dimension is not 1.
     """
     self._check_signal_dimension_equals_one()
     smoother = ButterworthFilter(self)
     if cutoff_frequency_ratio is not None:
         smoother.cutoff_frequency_ratio = cutoff_frequency_ratio
         smoother.apply()
     else:
         smoother.edit_traits()