noise_test.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Wall-EEG 作者: neurotechuoft 项目源码 文件源码
def __call__(self, sample):
        # keep tract of absolute value of
        self.diff = np.add(self.diff,
                           np.absolute(np.asarray(sample.channel_data)))
        self.sample_count = self.sample_count + 1

        elapsed_time = timeit.default_timer() - self.last_report
        if elapsed_time > self.polling_interval:
            channel_noise_power = np.divide(self.diff, self.sample_count)

            print (channel_noise_power)
            self.diff = np.zeros(self.eeg_channels)
            self.last_report = timeit.default_timer()

    # # Instanciate "monitor" thread
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号