1. A method for classifying grating profile data, the method comprising: requesting for classification of a grating profile data space, the profile data space including grating profile data points; clustering the grating profile data points into a number of clusters, and associating profile shape data to each cluster of grating profile data points.