def athreshold(a,threshmin=None,threshmax=None,newval=0):
    mask = N.zeros(a.shape)
    if threshmin <> None:
        mask = mask + N.where(a<threshmin,1,0)
    if threshmax <> None:
        mask = mask + N.where(a>threshmax,1,0)
    mask = N.clip(mask,0,1)
    return N.where(mask,newval,a)
Stops the Module.
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/athreshold--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/ExternalModule.quit