X
- the class of elements in the left input sequences.Y
- the class of elements in the right input sequences.public class ParallelGradientEngine<X,Y> extends MatrixEngine<double[]>
MatrixEngine.MatrixCoordinate
Engine.CalculationResult<I,R>
DEFAULT_NUMBER_OF_THREADS
Constructor and Description |
---|
ParallelGradientEngine(Collection<Engine.CalculationResult<? extends MatrixEngine.MatrixCoordinate,? extends DerivableAlignmentDistance<X,Y>>> results,
int M,
int N,
DerivableComparator<X,Y> comparator)
Creates a ParallelGradientEngine that computes gradients for several
DeriableAlignmentDistance objects in parallel.
|
ParallelGradientEngine(DerivableAlignmentDistance<X,Y>[][] derivableMatrixEntries,
DerivableComparator<X,Y> comparator)
Creates a ParallelGradientEngine that computes gradients for several
DeriableAlignmentDistance objects in parallel.
|
ParallelGradientEngine(Map<MatrixEngine.MatrixCoordinate,DerivableAlignmentDistance<X,Y>> derivableMatrixEntries,
int M,
int N,
DerivableComparator<X,Y> comparator)
Creates a ParallelGradientEngine that computes gradients for several
DeriableAlignmentDistance objects in parallel.
|
Modifier and Type | Method and Description |
---|---|
Callable<double[]> |
createCallable(MatrixEngine.MatrixCoordinate ident)
A method that should create a Callable (computation job) for the given
identifier object.
|
Map<MatrixEngine.MatrixCoordinate,DerivableAlignmentDistance<X,Y>> |
getDistances()
Returns the DerivableAlignmentDistance objects used for derivative calculation.
|
void |
setFull()
Overrides the setFull() method of matrix engine.
|
createGenericMatrix, extractNumberOfColumns, getDoubleResultMatrix, getResultMatrix, removeDiagonal, setSpecificTasks, setSpecificTasks, setSpecificTasks, setSpecificTasks, setSymmetric
addTask, addTasks, addTasks, calculate, clearTasks, getResults, removeTask, removeTasks, removeTasks
public ParallelGradientEngine(@NonNull Map<MatrixEngine.MatrixCoordinate,DerivableAlignmentDistance<X,Y>> derivableMatrixEntries, int M, int N, @NonNull DerivableComparator<X,Y> comparator)
derivableMatrixEntries
- a map of MatrixCoordinates to DeriableAlignmentDistance
objects.M
- the number of rows in the original distance matrix the given distance objects belong
to.N
- the number of columns in the original distance matrix the given distance objects
belong to.comparator
- The DerivableComparator with respect to which the gradient shall be
computed.public ParallelGradientEngine(@NonNull Collection<Engine.CalculationResult<? extends MatrixEngine.MatrixCoordinate,? extends DerivableAlignmentDistance<X,Y>>> results, int M, int N, @NonNull DerivableComparator<X,Y> comparator)
results
- a set of MatrixCoordinates with DeriableAlignmentDistance objects.M
- the number of rows in the original distance matrix the given distance objects belong
to.N
- the number of columns in the original distance matrix the given distance objects
belong to.comparator
- The DerivableComparator with respect to which the gradient shall be
computed.public ParallelGradientEngine(@NonNull DerivableAlignmentDistance<X,Y>[][] derivableMatrixEntries, @NonNull DerivableComparator<X,Y> comparator)
derivableMatrixEntries
- a matrix of DeriableAlignmentDistance objects.comparator
- The DerivableComparator with respect to which the gradient shall be
computed.public Map<MatrixEngine.MatrixCoordinate,DerivableAlignmentDistance<X,Y>> getDistances()
public void setFull()
setFull
in class MatrixEngine<double[]>
public Callable<double[]> createCallable(MatrixEngine.MatrixCoordinate ident)
Engine
createCallable
in class Engine<MatrixEngine.MatrixCoordinate,double[]>
ident
- an identifier.Copyright (C) 2016-2018 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/