Statistics for Centralized and decentralized detection with cost-constrained measurements