X
- the class of left-hand values for this comparator.Y
- the class of right-hand values for this comparator.public abstract class ParameterLessComparisonBasedSkipExtendedComparator<X,Y> extends ComparisonBasedSkipExtendedComparator<X,Y>
Constructor and Description |
---|
ParameterLessComparisonBasedSkipExtendedComparator(Y deleteComparison,
X insertComparison) |
ParameterLessComparisonBasedSkipExtendedComparator(Y deleteComparison,
X insertComparison,
Y skipDeleteComparison,
X skipInsertComparison) |
Modifier and Type | Method and Description |
---|---|
Gradient |
computeComparisonGradient(X a,
Y b)
Computes the gradient of the comparator function w.r.t.
|
double[] |
getComparisonParameters()
Return the current value of all parameters of this comparator.
|
int |
getNumberOfComparisonParameters()
Implementing classes should return the number of (derivative-relevant) parameters used for
the compare-function.
|
void |
setComparisonParameters(double[] params)
Sets the current value of all parameters of this comparator.
|
compare, computeGradient, equals, hashCode
actualCompare, getNumberOfParameters, getParameters, hasCoherentReplacementCost, setParameters, supports
public ParameterLessComparisonBasedSkipExtendedComparator(Y deleteComparison, X insertComparison, Y skipDeleteComparison, X skipInsertComparison)
public Gradient computeComparisonGradient(X a, Y b)
SkipExtendedComparator
computeComparisonGradient
in class SkipExtendedComparator<X,Y>
a
- the left input.b
- the right input.public int getNumberOfComparisonParameters()
SkipExtendedComparator
getNumberOfComparisonParameters
in class SkipExtendedComparator<X,Y>
public double[] getComparisonParameters()
SkipExtendedComparator
getComparisonParameters
in class SkipExtendedComparator<X,Y>
public void setComparisonParameters(double[] params)
SkipExtendedComparator
setComparisonParameters
in class SkipExtendedComparator<X,Y>
params
- the new value of all parameters of this comparator.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/