예제 #1
0
파일: spectrum.py 프로젝트: csb60/hyperspy
 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()
예제 #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()
예제 #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()