The invention features a method of identifying, evaluating or making a compound or agent, e. The dual function distance metric can handle patterns containing multiple polygons, is easy to compute, and is tolerant of small variations or shifts of the shapes. The refractive index n2 of the thin-film lens 3 is set to a value smaller than n1 and n3.