Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  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():
    # Test that fdr works on Gaussian data
    np.random.seed([2])
    x = np.random.randn(100) * 2
    fdr = gaussian_fdr(x)