public interface Substitution
A positive value indicates the characters are similar, a negative value indicates they are dissimilar.
This class is immutable and thread-safe.
Gap
,
Wikipedia
- Smith–Waterman algorithmModifier and Type | Method and Description |
---|---|
float |
compare(String a,
int aIndex,
String b,
int bIndex)
Rates the substitution of character
a.getChar(aIndex)
against b.getChar(bIndex) . |
float |
max()
Returns the maximum value a gap can have
|
float |
min()
Returns the minimum value a gap can have
|
float compare(String a, int aIndex, String b, int bIndex)
a.getChar(aIndex)
against b.getChar(bIndex)
.a
- a string to check inaIndex
- index of character at string a
to compareb
- another string to check inbIndex
- index of character at string b
to comparefloat max()
float min()
Copyright © 2014–2018. All rights reserved.