Skip to content

Commit

Permalink
TST: give a bit more signal
Browse files Browse the repository at this point in the history
  • Loading branch information
nno committed Dec 1, 2016
1 parent 025de49 commit 3ce8aca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_montecarlo_cluster_stat.m
Expand Up @@ -85,7 +85,7 @@ function helper_test_mccs_with_tail(left_tail,right_tail)
[unused,rp]=sort(rand(1,nfeatures));
ds.samples=randn(nchunks,nfeatures);

sigma=3/sqrt(nchunks);
sigma=4/sqrt(nchunks);

% add effect below zero
if left_tail
Expand Down Expand Up @@ -158,7 +158,13 @@ function helper_test_mccs_with_tail(left_tail,right_tail)
median_zero_ratio=median_zero_ratio+ratio_effect;
end

margin=1/6;
if left_tail && right_tail
% allow for more non-results
margin=1/4;
else
margin=1/6;
end

minimum_zero_ratio=median_zero_ratio-margin;
maximum_zero_ratio=median_zero_ratio+margin;

Expand All @@ -167,6 +173,7 @@ function helper_test_mccs_with_tail(left_tail,right_tail)
assertTrue(zero_ratio<=maximum_zero_ratio);



function test_onesample_ttest_montecarlo_cluster_stat_basics
ds=cosmo_synthetic_dataset('ntargets',1,'nchunks',6);
nh=cosmo_cluster_neighborhood(ds,'progress',false);
Expand Down

0 comments on commit 3ce8aca

Please sign in to comment.