Detection of Stochastic Signals using Generalized Detector