Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/statistics/tests/test_empirical_pvalue.py   nipy(Download)
 
 
from ..empirical_pvalue import (
    NormalEmpiricalNull, smoothed_histogram_from_samples, fdr, fdr_threshold, 
    gaussian_fdr_threshold, gaussian_fdr)
def test_gaussian_fdr_threshold():
    np.random.seed([2])
    x = np.random.randn(100) * 2
    ac = gaussian_fdr_threshold(x)
    assert_true(ac > 2.0)
    assert_true(ac < 4.0) 
    assert_true(ac > gaussian_fdr_threshold(x, alpha=.1))