Generalized Statistical Process Control