1. A method of defect clustering in inspection patterns on the surface of a workpiece, said method comprising the step of: classifying detected defects automatically in clusters by characteristics of the defects.