public class PathList extends ArrayList<AlignmentPath> implements AlignmentDerivativeAlgorithm
modCount
Constructor and Description |
---|
PathList() |
Modifier and Type | Method and Description |
---|---|
<X extends Value,Y> |
calculateParameterDerivative(DerivableComparator<X,Y> comp)
This returns the derivatives for all parameters of the given comparator
according to the implementation.
|
<X extends Value,Y> |
calculateRawParameterDerivative(DerivableComparator<X,Y> comp)
This returns the derivatives for all parameters of the given comparator
according to the implementation.
|
double[] |
calculateWeightDerivative()
Calculates the derivative for each keyword weight.
|
double |
getAverageScore()
Returns the average score for all paths in this list.
|
double[][] |
toMatrix()
This transforms the PathList to a matrix, mostly for visualization
purposes.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public double getAverageScore()
public <X extends Value,Y> Y calculateParameterDerivative(DerivableComparator<X,Y> comp)
calculateParameterDerivative
in interface AlignmentDerivativeAlgorithm
X
- the values the given comparator can compare.Y
- the result format for derivatives of the given comparator.comp
- the DerivableComparator that provides functionality to
calculate local derivatives.public <X extends Value,Y> double[] calculateRawParameterDerivative(DerivableComparator<X,Y> comp)
calculateRawParameterDerivative
in interface AlignmentDerivativeAlgorithm
X
- the values the given comparator can compare.comp
- the DerivableComparator that provides functionality to
calculate local derivatives.public double[] calculateWeightDerivative()
calculateWeightDerivative
in interface AlignmentDerivativeAlgorithm
public double[][] toMatrix()
Copyright © 2014. All rights reserved.