similaritySort

format

SearchResults[] similaritySort(SearchResults arg1[])

description

Takes the given array of unordered SearchResults objects and sorts it according to the objects' similarity scores.

parameters

similarity - represents the degree of similarity between the search result and the target image

returns

a one-dimensional array of SearchResults objects sorted in descending order by similarity

throws

The similaritySort() method does not throw any exceptions.