X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.public class CooptimalModel<X,Y> extends Object implements DerivableAlignmentDistance<X,Y>
Constructor and Description |
---|
CooptimalModel(Comparator<X,Y> comparator,
List<X> left,
List<Y> right,
double distance) |
Modifier and Type | Method and Description |
---|---|
double[] |
computeGradient(DerivableComparator<X,Y> comp)
This computes the gradient of this DerivableAlignmentDistance w.r.t.
|
Map<MatrixEngine.MatrixCoordinate,OperationType[][]> |
getCooptimals()
A Map of matrix coordinates to an array of sequences of operations that can be co-optimally
applied at the given position of the dynamic programming matrix.
|
double |
getDistance()
Returns the distance between the two input sequences.
|
List<X> |
getLeft()
Returns the left sequence of this distance.
|
List<Y> |
getRight()
Returns the right sequence of this distance.
|
public Map<MatrixEngine.MatrixCoordinate,OperationType[][]> getCooptimals()
public List<X> getLeft()
DerivableAlignmentDistance
getLeft
in interface DerivableAlignmentDistance<X,Y>
public List<Y> getRight()
DerivableAlignmentDistance
getRight
in interface DerivableAlignmentDistance<X,Y>
public double getDistance()
DerivableAlignmentDistance
getDistance
in interface DerivableAlignmentDistance<X,Y>
public double[] computeGradient(@NonNull DerivableComparator<X,Y> comp)
DerivableAlignmentDistance
computeGradient
in interface DerivableAlignmentDistance<X,Y>
comp
- the DerivableComparator that was used in computing this distance.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/