Generalized maximally selected statistics.

Generalized maximally selected statistics.