Did I find the right examples for you? yes no

All Samples(18)  |  Call(16)  |  Derive(0)  |  Import(2)

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/utils/tests/test_random_threshold.py   pypreprocess(Download)
import scipy.stats as st
 
from ..random_threshold import randthresh_main
 
def make_data(n=10, dim=20, r=5, mdim=15, maskdim=20, amplitude=10, 
         K = (signal == 0).sum() - 100
         verbose=False
         randthresh_main(X, K, XYZ=None, p=np.inf, varwind=True, 
                         knownull=True, stop=False, verbose=verbose)
         randthresh_main(Y, K, XYZ=None, p=np.inf, varwind=True,
                         knownull=False, stop=True, verbose=verbose)
 
         randthresh_main(X, K, XYZ=None, p=np.inf, varwind=False, 
                         knownull=True, stop=True, verbose=verbose)
         randthresh_main(Y, K, XYZ=None, p=np.inf, varwind=False,

src/n/i/nipy-0.3.0/nipy/labs/utils/tests/test_random_threshold.py   nipy(Download)
import scipy.stats as st
 
from ..random_threshold import randthresh_main
 
def make_data(n=10, dim=20, r=5, mdim=15, maskdim=20, amplitude=10, 
         K = (signal == 0).sum() - 100
         verbose=False
         randthresh_main(X, K, XYZ=None, p=np.inf, varwind=True, 
                         knownull=True, stop=False, verbose=verbose)
         randthresh_main(Y, K, XYZ=None, p=np.inf, varwind=True,
                         knownull=False, stop=True, verbose=verbose)
 
         randthresh_main(X, K, XYZ=None, p=np.inf, varwind=False, 
                         knownull=True, stop=True, verbose=verbose)
         randthresh_main(Y, K, XYZ=None, p=np.inf, varwind=False,