Statistics for Optimal stochastic approaches for signal detection and estimation under inequality constraints