V
- the class that is represented by the corresponding Value of this ValueComparator.public abstract class AbstractDerivableValueComparatorWrapper<V> extends AbstractValueComparatorWrapper<V> implements DerivableComparator<Node,Node>
Constructor and Description |
---|
AbstractDerivableValueComparatorWrapper(String keyword,
ValueType type,
DerivableComparator<V,V> actualComparator) |
Modifier and Type | Method and Description |
---|---|
Gradient |
computeGradient(OperationType type,
Node a,
Node b)
Computes the gradient of this comparator function w.r.t.
|
DerivableComparator<V,V> |
getActualComparator() |
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, extractValue, getKeyword, getType, hasCoherentReplacementCost, supports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, hasCoherentReplacementCost, supports
public AbstractDerivableValueComparatorWrapper(@NonNull String keyword, @NonNull ValueType type, @NonNull DerivableComparator<V,V> actualComparator)
public DerivableComparator<V,V> getActualComparator()
public Gradient computeGradient(@NonNull OperationType type, Node a, Node b)
DerivableComparator
computeGradient
in interface DerivableComparator<Node,Node>
type
- the type of alignment operation to be useda
- the left input.b
- the right input.public int getNumberOfParameters()
DerivableComparator
getNumberOfParameters
in interface DerivableComparator<Node,Node>
public double[] getParameters()
DerivableComparator
getParameters
in interface DerivableComparator<Node,Node>
public void setParameters(@NonNull double[] params)
DerivableComparator
setParameters
in interface DerivableComparator<Node,Node>
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/