X
- the class of left-hand values for this comparator.Y
- the class of right-hand values for this comparator.public interface DerivableComparator<X,Y> extends Comparator<X,Y>
Modifier and Type | Method and Description |
---|---|
Gradient |
computeGradient(OperationType type,
X a,
Y b)
Computes the gradient of this comparator function w.r.t.
|
int |
getNumberOfParameters()
This shall return the number of parameters of this comparator.
|
double[] |
getParameters()
Return the current value of all parameters of this comparator.
|
void |
setParameters(double[] params)
Sets the current value of all parameters of this comparator.
|
compare, hasCoherentReplacementCost, supports
Gradient computeGradient(@NonNull OperationType type, X a, Y b)
type
- the type of alignment operation to be useda
- the left input.b
- the right input.int getNumberOfParameters()
double[] getParameters()
void setParameters(@NonNull double[] params)
params
- the new value of all parameters of this comparator.Copyright (C) 2016 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/