当前位置: 首页>>代码示例>>Python>>正文


Python asl.simulate_asl函数代码示例

本文整理汇总了Python中pyhrf.jde.asl.simulate_asl函数的典型用法代码示例。如果您正苦于以下问题:Python simulate_asl函数的具体用法?Python simulate_asl怎么用?Python simulate_asl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了simulate_asl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_prf

 def test_prf(self):
     """ Validate estimation of PRF """
     pyhrf.verbose.set_verbosity(2)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['prf'], fdata, nb_its=100,
                                  check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py

示例2: test_noise_var

 def test_noise_var(self):
     """ Validate estimation of noise variances at high SNR"""
     pyhrf.verbose.set_verbosity(2)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['noise_var'], fdata, nb_its=100,
                                  check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py

示例3: setUp

    def setUp(self):
        np.random.seed(8652761)

        tmpDir = tempfile.mkdtemp(prefix='pyhrf_tests',
                                  dir=pyhrf.cfg['global']['tmp_path'])
        self.tmp_dir = tmpDir
        simu = simulate_asl(self.tmp_dir, spatial_size='random_small')
        self.data_simu = FmriData.from_simulation_dict(simu)
开发者ID:ainafp,项目名称:pyhrf,代码行数:8,代码来源:test_jde_vem_asl.py

示例4: test_brls

 def test_brls(self):
     """ Validate estimation of BRLs at high SNR"""
     pyhrf.verbose.set_verbosity(2)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['bold_response_levels'], fdata, nb_its=100,
                                  check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py

示例5: test_brf_physio_reg

 def test_brf_physio_reg(self):
     """ Validate estimation of BRF at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['brf'], fdata, nb_its=100,
                                  check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py

示例6: test_brf_physio_reg

 def test_brf_physio_reg(self):
     """ Validate estimation of BRF at high SNR"""
     pyhrf.verbose.set_verbosity(2)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['brf'], fdata, nb_its=100,
                                  check_fv='raise')
     print 'pyhrf_view_qt3 %s/*brf*nii' %self.tmp_dir
开发者ID:pmesejo,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py

示例7: test_perf_baseline

 def test_perf_baseline(self):
     """ Validate estimation of drift at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir, spatial_size='normal')
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['perf_baseline'], fdata, nb_its=100,
                                  check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py

示例8: test_perf_baseline

 def test_perf_baseline(self):
     """ Validate estimation of drift at high SNR"""
     pyhrf.verbose.set_verbosity(2)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir, spatial_size='normal')
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['perf_baseline'], fdata, nb_its=100,
                                  check_fv='raise')
     print 'pyhrf_view_qt3 %s/*perf*nii' %self.tmp_dir
开发者ID:pmesejo,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py

示例9: test_prf

 def test_prf(self):
     """ Validate estimation of PRF """
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_parameters(['prf'], fdata, simu, nItMax=20,
                                    estimateG=True)
开发者ID:ainafp,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_vem_asl.py

示例10: test_prls

 def test_prls(self):
     """ Validate estimation of PRLs at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_parameters(['perf_response_levels'], fdata, simu,
                                    nItMax=100, estimateC=True)
开发者ID:ainafp,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_vem_asl.py

示例11: test_prf_var

 def test_prf_var(self):
     """ Validate estimation of PRF """
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['prf_var'], fdata, nb_its=20,
                                  check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py

示例12: test_brf_physio_nonreg

 def test_brf_physio_nonreg(self):
     """ Validate estimation of BRF at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir, spatial_size='normal')
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['brf'], fdata, nb_its=100,
                                  check_fv='raise',
                                  rf_prior_type='physio_stochastic_not_regularized')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_asl_physio.py

示例13: test_sigmaG

 def test_sigmaG(self):
     """ Validate estimation of drift at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir, spatial_size='normal')
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_parameters(['sigma_G'], fdata, simu,
                                    nItMax=100, estimateSigmaG=True)
     print 'pyhrf_view %s/*mixt_params*perf*nii' % self.tmp_dir
开发者ID:ainafp,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_vem_asl.py

示例14: test_noise_var

 def test_noise_var(self):
     """ Validate estimation of noise variances at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir)
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_parameters(['noise_var'], fdata, simu, nItMax=100,
                                    estimateNoise=True)
     print 'pyhrf_view %s/*noise*nii' % self.tmp_dir
开发者ID:ainafp,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_vem_asl.py

示例15: test_prf_physio_det

 def test_prf_physio_det(self):
     """ Validate estimation of BRF at high SNR"""
     # pyhrf.verbose.set_verbosity(2)
     pyhrf.logger.setLevel(logging.INFO)
     from pyhrf.jde.asl import simulate_asl
     simu = simulate_asl(self.tmp_dir, spatial_size='normal')
     print simu['prf'].shape
     fdata = FmriData.from_simulation_dict(simu)
     self._test_specific_samplers(['prf'], fdata, nb_its=100,
                                  check_fv='raise',
                                  rf_prior_type='physio_deterministic')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:11,代码来源:valid_jde_asl_physio.py


注:本文中的pyhrf.jde.asl.simulate_asl函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。