
Grating profile data is classified using a cluster generator to generate a plurality of clusters of grating profile data points from a data space containing grating profile data points. The cluster generator associates profile shape data to each cluster, and links the associated profile shape data to the grating profiles belonging to each cluster.











