X
- The value that can be compared by this class.Y
- An intuitive format for the derivatives of all parameters of this
comparator.public interface DerivableComparator<X extends Value,Y>
Modifier and Type | Method and Description |
---|---|
double |
calculateLocalDerivative(int paramIdx,
X a,
X b,
OperationType type)
This is called by an AlignmentDerivativeAlgorithm and should calculate
the local derivative for only one comparison of the values a and b.
|
int |
getNumberOfParameters()
This shall return the number of parameters of this comparator.
|
Class<Y> |
getResultClass()
Returns the class of the intuitive format of the derivatives for all
parameters of this comparator.
|
Y |
transformToResult(double[] derivatives)
This method is supposed to construct the derivative for this comparator
in an intuitive format given its vectorial form.
|
double calculateLocalDerivative(int paramIdx, X a, X b, OperationType type)
paramIdx
- the index for this parameters.a
- the value that has been compared with b.b
- the value that has been compared with a.type
- the operation type that has actually been used in the
comparison.Y transformToResult(double[] derivatives)
derivatives
- the derivatives for all parameters of this comparator
in its vectorial form.int getNumberOfParameters()
Class<Y> getResultClass()
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 . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/