Package | Description |
---|---|
de.citec.tcs.alignment |
This module defines the interface for AlignmentAlgorithms as
well as some helper classes.
|
de.citec.tcs.alignment.comparators |
This module defines the interfaces for comparators in the TCS
Alignment Toolbox.
|
Modifier and Type | Method and Description |
---|---|
Comparator |
AlignmentSpecification.getComparator(int index)
Returns the Comparator that is currently set for the given keyword.
|
Comparator |
AlignmentSpecification.getComparator(String keyword)
Returns the Comparator that is currently set for the given keyword.
|
Modifier and Type | Method and Description |
---|---|
static double |
SoftDTWModel.calc_weighted_comp_sum(Comparator[] comparators,
double[] weights,
int[] originalIndices,
Node nodeX,
Node nodeY)
Returns weighted sum k of local comparators: k = sum(w_i * k_i) with:
k_i: local comparators w_i: local weights
Note: Comparators, weights, originalIndices are supposed to originate
from the same AlignmentSpecification.
|
void |
AlignmentSpecification.setComparator(int index,
Comparator comparator)
Sets the comparator for a given keyword.
|
void |
AlignmentSpecification.setComparator(String keyword,
Comparator comparator)
Sets the comparator for a given keyword.
|
Constructor and Description |
---|
AlignmentSpecification(NodeSpecification nodeSpecification,
Comparator[] comparators) |
AlignmentSpecification(NodeSpecification nodeSpecification,
String[] keywords,
Comparator[] comparators) |
AlignmentSpecification(NodeSpecification nodeSpecification,
String[] keywords,
Comparator[] comparators,
double[] weighting) |
Modifier and Type | Interface and Description |
---|---|
interface |
GapComparator<X extends Value>
This specifies the comparator interface slightly to include the case that
entities might be deleted/inserted.
|
interface |
SkipComparator<X extends Value>
This further specifies the AlignmentComparator to include skips.
|
Modifier and Type | Class and Description |
---|---|
class |
CharStatComparator
This compares strings using statistics over the number of letters inside.
|
class |
ComparisonBasedSkipExtendedComparator<V extends Value>
This is an abstract class allowing to define a dynamic method to
extend a simple Comparator to a SkipComparator.
|
class |
DTWKernelComparator
implements halved gauss-kernel k:
k = exp(-1/2sigma^2 * |x-y|^2) /2, with |.| beeing the weighted euclidian
distance
k is positive definite
|
class |
EuclideanComparator
Compares vectors using the L2-Norm.
|
class |
L1NormComparator
Compares vectors using the L1-Norm.
|
class |
NCDComparator
This compares strings using normalized compression distance.
|
class |
ReplacementComparator
This comparator defines explicit replacement (and deletion/insertion) costs
for comparison of symbolic values.
|
class |
SkipExtendedComparator<V extends Value>
This is an abstract class to be used for Comparators that are only
to be used for comparisons per se but can be extended for use with
gaps and skips.
|
class |
TrivialEditComparator
This is a Comparator for SymbolicValues that just specifies a score for:
the deletion of a symbol (1 per default)
the insertion of a symbol (1 per default)
the skip deletion of a symbol (0.5 per default)
the skip insertion of a symbol (0.5 per default)
a match between the same symbols (0 per default)
a mismatch between different symbols (1 per default)
Please note that this is just a special case of the much more general
ReplacementComparator.
|
class |
ZeroNormComparator
This comparator works on basis of the zero norm.
|
Modifier and Type | Method and Description |
---|---|
static Comparator |
Defaults.getDefaultComparator(KeywordSpecification keywordSpec)
Returns a sensible default comparator for the given KeywordSpecification.
|
static Comparator[] |
Defaults.getDefaultComparators(KeywordSpecification[] keywordSpecs)
Returns sensible default comparators for the given KeywordSpecifications.
|
static Comparator[] |
Defaults.getDefaultComparators(NodeSpecification nodeSpec)
Returns sensible default comparators for the given NodeSpecification, one
for each contained KeywordSpecification.
|
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