2014/12/18 -- CSL -- corrected the name of adaptive threshold function