1. A method for hypothesis testing comprising, in a data processor: receiving a data stream; determining a decision stream based on the data stream compared to a threshold; determining a noise subset of the data stream based on the decision stream; and generating the threshold from the noise subset of the data stream based on an order statistics processing of the noise subset.