Determining representative reference patterns