|
Algorithm A2 Distinct feature vector identifier (DFI) |
|
Input: A set of feature vectors and a similarity threshold , where for . Moreover, set (empty set). |
|
Step 1: Compute , where , for . |
|
Step 2: While (empty set) do |
Step 2.1: Set , where is a function that randomly selects only one element of its input set, i.e., .
|
|
|
|
|
| where for
|
Step 2.3: for do
|
| If ( ), then |
| , |
| where is a function that removes element from set . |
| End (for). |
|
|
|
|
| And |
|
|
| End (While)
|
|
Output:
|