normalizedIndelMany
normalizedIndelMany(
reference,candidates,minSimilarity?):number[]
Compute the normalized Indel similarity from one reference string to many candidates.
Returns an array of similarity scores, one per candidate, in the same order as the input.
If minSimilarity is provided, candidates with similarity below the threshold
will return 0.0 (enabling early termination for better performance); a score
equal to it is kept. Throws an InvalidArg error if minSimilarity is NaN.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
reference |
string |
candidates |
readonly string[] |
minSimilarity? |
number | null |
Returns
Section titled “Returns”number[]