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 |
ReplacementComparator.calculateLocalDerivative(int paramIdx,
SymbolicValue a,
SymbolicValue b,
OperationType type)
This is called by an AlignmentDerivativeAlgorithm and should calculate
the local derivative for only one comparison of the values a and b.
|
SparseLocalDerivative |
ReplacementComparator.calculateSparseLocalDerivative(SymbolicValue a,
SymbolicValue b,
OperationType type)
This method shall return a sparse representation of the derivative for
all parameters that have non-zero derivatives in this step of the
alignment.
|
double |
TrivialEditComparator.compare(SymbolicValue a,
SymbolicValue 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 |
ReplacementComparator.compare(SymbolicValue a,
SymbolicValue 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 |
TrivialEditComparator.comparisonDerivative(int paramIdx,
SymbolicValue a,
SymbolicValue b)
This should implement the local derivative calculation in case of
comparisons.
|
double |
ReplacementComparator.delete(SymbolicValue a)
This should be called during an alignment to retrieve the costs for a
deletion of value a from the first sequence.
|
double |
ReplacementComparator.insert(SymbolicValue b)
This should be called during an alignment to retrieve the costs for an
insertion of value b into the first sequence.
|
double |
ReplacementComparator.skipDelete(SymbolicValue a)
This should be called during an alignment to retrieve the costs for a
skip deletion of value a from the first sequence.
|
double |
ReplacementComparator.skipInsert(SymbolicValue b)
This should be called during an alignment to retrieve the costs for a
skip insertion of value b into the first sequence.
|
SparseLocalDerivative |
TrivialEditComparator.sparseComparisonDerivative(SymbolicValue a,
SymbolicValue 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 . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/