d77d4a471a1ad924ed94275c00d96544f70a5889,dipy/sims/tests/test_phantom.py,,test_snr,#,73
Before Change
snr=snr)
noise = vol - vol_w_noise
rms_noise = np.sqrt(np.mean(noise**2))
snr_est = mean_sig/rms_noise
assert_array_almost_equal(snr_est, snr, decimal=3)
After Change
noise = vol - vol_w_noise
s = np.mean(vol, -1)
n = np.std(noise, -1)
snr_est = s/n
assert_array_almost_equal(np.mean(snr_est[np.isfinite(snr_est)]),
snr, decimal=0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: nipy/dipy
Commit Name: d77d4a471a1ad924ed94275c00d96544f70a5889
Time: 2012-11-09
Author: arokem@gmail.com
File Name: dipy/sims/tests/test_phantom.py
Class Name:
Method Name: test_snr
Project Name: scipy/scipy
Commit Name: 2a28ba889d85c28e490b8b99aef8909e4602aff5
Time: 2019-06-30
Author: rlucas7@vt.edu
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: binned_statistic_dd
Project Name: WheatonCS/Lexos
Commit Name: 3227c2ed4ae92c6b9ecfc1b2c614ff4c36bd9fd0
Time: 2017-07-21
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: FileInformation
Method Name: __init__