Assembly: SourceAFIS (in SourceAFIS.dll)
|Visual Basic (Declaration)|
Public Function Identify ( _ probe As Person, _ candidates As IEnumerable(Of Person) _ ) As IEnumerable(Of Person)
public IEnumerable<Person> Identify( Person probe, IEnumerable<Person> candidates )
public: IEnumerable<Person^>^ Identify( Person^ probe, IEnumerable<Person^>^ candidates )
function identify(probe, candidates);
- Type: SourceAFIS.Simple..::..Person
Person to look up in the collection.
Return ValueAll matching Person objects in the collection or an empty collection if there is no match. Results are sorted by score in descending order. If you need only one best match, call FirstOrDefault<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>)) method on the returned collection.
Compares probe Person to all candidate Persons and returns the most similar candidates. Calling is conceptually identical to calling Verify(Person, Person) in a loop except that is significantly faster than loop of Verify(Person, Person) calls. If there is no candidate with score at or above Threshold, returns empty collection.
Most applications need only the best match, which can be obtained by calling FirstOrDefault<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>)) method on the returned collection. Matching score for every returned Person can be obtained by calling Verify(Person, Person) on probe Person and the matching Person.