Package | Description |
---|---|
de.unibi.citec.tcs.alignment.comparators |
This package contains comparators that define distances between Values.
|
Modifier and Type | Method and Description |
---|---|
double |
CharStatComparator.compare(StringValue a,
StringValue b)
This has to return a distance between a and b with the following
restrictions:
The return value has to lie between 0 and 1.
1 means maximum dissimilarity between a and b.
0 means maximum similarity between a and b (especially it should be
true that a = b implies a zero distance).
distance(a,b) should be equal or at least close to
distance(b,a)
Please note that this has to be well-defined, even if an input is null.
|
double |
CharStatComparator.delete(StringValue a)
This should be called during an alignment to retrieve the costs for a
deletion of value a from the first sequence.
|
double |
CharStatComparator.insert(StringValue b)
This should be called during an alignment to retrieve the costs for an
insertion of value b into the first sequence.
|
double |
CharStatComparator.skipDelete(StringValue a)
This should be called during an alignment to retrieve the costs for a
skip deletion of value a from the first sequence.
|
double |
CharStatComparator.skipInsert(StringValue b)
This should be called during an alignment to retrieve the costs for a
skip insertion of value b into the first sequence.
|
Copyright © 2014. All rights reserved.