The present invention recites a method and computer program product for
generating a set of training samples from a single ideal pattern for each
output class of a pattern recognition classifier. A system equivalent
pattern is generated for each of a plurality of classes from a
corresponding ideal pattern. A noise model, simulating at least one type
of noise expected in a real-world classifier input pattern, is then
applied to each system equivalent pattern a set number times to produce,
for each output class, a number of training samples. Each training sample
simulates defects expected in real-world classifier input patterns.