Package | Description |
---|---|
de.citec.tcs.alignment.comparators |
This module defines the interfaces for comparators in the TCS
Alignment Toolbox.
|
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 |
NCDComparator.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.comparisonDerivative(int paramIdx,
StringValue a,
StringValue b)
This should implement the local derivative calculation in case of
comparisons.
|
double |
NCDComparator.comparisonDerivative(int paramIdx,
StringValue a,
StringValue b)
This should implement the local derivative calculation in case of
comparisons.
|
SparseLocalDerivative |
CharStatComparator.sparseComparisonDerivative(StringValue a,
StringValue b)
This should implement the local derivative calculation in case of
comparisons.
|
SparseLocalDerivative |
NCDComparator.sparseComparisonDerivative(StringValue a,
StringValue b)
This should implement the local derivative calculation in case of
comparisons.
|
Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs