public class SoftPathModel extends Object implements AlignmentDerivativeAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
SoftPathModel.SoftMatrixEntry |
Constructor and Description |
---|
SoftPathModel(AlignmentSpecification specification,
Sequence left,
Sequence right,
double distance,
double beta,
SoftPathModel.SoftMatrixEntry[][] pathMatrix) |
Modifier and Type | Method and Description |
---|---|
<X extends Value,Y> |
calculateParameterDerivative(DerivableComparator<X,Y> comp,
String keyword)
This returns the derivatives for all parameters of the given comparator
according to the implementation.
|
<X extends Value,Y> |
calculateRawParameterDerivative(DerivableComparator<X,Y> comp,
String keyword)
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 |
getBeta()
The parameter defining the "softness" of the alignment.
|
double |
getDistance()
Returns the distance between the two input sequences of this Derivative.
|
Sequence |
getLeft()
Returns the left sequence of this derivative.
|
SoftPathModel.SoftMatrixEntry[][] |
getPathMatrix()
This is the dynamic programming matrix calculated by a
SoftAlignmentAlgorithm.
|
Sequence |
getRight()
Returns the right sequence of this derivative.
|
AlignmentSpecification |
getSpecification()
Returns the AlignmentSpecification that was basis for this Alignment.
|
public SoftPathModel(AlignmentSpecification specification, Sequence left, Sequence right, double distance, double beta, SoftPathModel.SoftMatrixEntry[][] pathMatrix)
public Sequence getLeft()
getLeft
in interface AlignmentDerivativeAlgorithm
public Sequence getRight()
getRight
in interface AlignmentDerivativeAlgorithm
public double getDistance()
getDistance
in interface AlignmentDerivativeAlgorithm
public AlignmentSpecification getSpecification()
public double getBeta()
public SoftPathModel.SoftMatrixEntry[][] getPathMatrix()
public <X extends Value,Y> Y calculateParameterDerivative(DerivableComparator<X,Y> comp, String keyword)
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.keyword
- the keyword for which the given comparator was used in
the Alignment.public <X extends Value,Y> double[] calculateRawParameterDerivative(DerivableComparator<X,Y> comp, String keyword)
calculateRawParameterDerivative
in interface AlignmentDerivativeAlgorithm
X
- the values the given comparator can compare.comp
- the DerivableComparator that provides functionality to
calculate local derivatives.keyword
- the keyword for which the given comparator was used in
the Alignment.public double[] calculateWeightDerivative()
calculateWeightDerivative
in interface AlignmentDerivativeAlgorithm
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/