public class AlignmentPath extends Object implements AlignmentDerivativeAlgorithm
Constructor and Description |
---|
AlignmentPath(AlignmentSpecification specificaton,
Sequence left,
Sequence right,
double score) |
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.
|
protected Object |
clone() |
boolean |
equals(Object obj) |
Sequence |
getLeft() |
ArrayList<Operation> |
getOperations() |
Sequence |
getRight() |
double |
getScore() |
AlignmentSpecification |
getSpecificaton() |
int |
hashCode() |
double[][] |
toMatrix()
This transforms the AlignmentPath to a matrix, mostly for visualization
purposes.
|
String |
toString() |
public AlignmentPath(AlignmentSpecification specificaton, Sequence left, Sequence right, double score)
public AlignmentSpecification getSpecificaton()
public ArrayList<Operation> getOperations()
public Sequence getLeft()
public Sequence getRight()
public double getScore()
public double[][] toMatrix()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public double[] calculateWeightDerivative()
calculateWeightDerivative
in interface AlignmentDerivativeAlgorithm
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.Copyright © 2014. All rights reserved.