X
- The node class for the left input set.Y
- The node class for the right input set.public class StrictSetAlignmentFullAlgorithm<X,Y> extends AbstractStrictSetAlignmentAlgorithm<X,Y,Alignment>
Constructor and Description |
---|
StrictSetAlignmentFullAlgorithm(Comparator<X,Y> comparator) |
Modifier and Type | Method and Description |
---|---|
Alignment<X,Y> |
transformToResult(int[] assignment,
double[][] repCosts,
double[] delCosts,
double[] insCosts,
List<X> a,
List<Y> b)
This method has to be implemented by sub classes to transform a computed optimal assignment
of elements in the left set to elements in the right set to a valid result of the respective
implementation.
|
align, calculateAlignment, distance, getComparator, getResultClass, normalizeDissimilarity, requires, setComparator
public StrictSetAlignmentFullAlgorithm(Comparator<X,Y> comparator)
public Alignment<X,Y> transformToResult(int[] assignment, double[][] repCosts, double[] delCosts, double[] insCosts, List<X> a, List<Y> b)
AbstractStrictSetAlignmentAlgorithm
transformToResult
in class AbstractStrictSetAlignmentAlgorithm<X,Y,Alignment>
assignment
- a vector of size m + n where the ith entry is the index j of the element in
the second set element i has been assigned to. If i is ≥ n then i has been assigned to
nothing. Furthermore, each element j in the second set where the entry m+j is j is assigned
to nothing.repCosts
- the matrix of pairwise REPLACEMENT costs for each pairwise combination of
elements in the input sets.delCosts
- the vector of DELETION costs for each element of the left input set.insCosts
- the vector of INSERTION costs for each element of the right input set.a
- the first input set.b
- the second input set.Copyright (C) 2016-2018 Benjamin Paaßen, 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/