A State-Space Approach to Nonstationary Discriminant Analysis