public class ParallelDerivativeEngine extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULTTHREADNUM |
static int |
SHOW_STEPS |
Constructor and Description |
---|
ParallelDerivativeEngine(AlignmentDerivativeAlgorithm[] derivativeAlgorithms)
This sets up a ParallelProcessingEngine for the given AlignmentAlgorithm
and the given Sequences.
|
ParallelDerivativeEngine(AlignmentDerivativeAlgorithm[][] derivativeAlgorithms) |
Modifier and Type | Method and Description |
---|---|
<R> R[] |
calculateComparatorDerivatives(DerivableComparator<?,R> comp,
String keyword) |
double[][] |
calculateWeightDerivatives()
This calculates the weight derivatives for each of the input
AlignmentDerivativeAlgorithms.
|
AlignmentDerivativeAlgorithm[] |
getAlgorithms() |
int |
getNumberOfThreads()
Please refer to the corresponding setter method for more information.
|
boolean |
isIgnoreExceptions()
If this is set to true exceptions in single threads are ignored.
|
boolean |
isVerbose()
If verbose is set to true the ParallelProcessingEngine will give
information about the current state of the calculation.
|
void |
setIgnoreExceptions(boolean ignoreExceptions)
If this is set to true exceptions in single threads are ignored.
|
void |
setNumberOfThreads(int numThreads)
Sets the number of threads that are used.
|
void |
setVerbose(boolean verbose)
If verbose is set to true the ParallelProcessingEngine will give
information about the current state of the calculation.
|
public static final int DEFAULTTHREADNUM
public static final int SHOW_STEPS
public ParallelDerivativeEngine(AlignmentDerivativeAlgorithm[] derivativeAlgorithms)
derivativeAlgorithms
- the derivative algorithms that shall be
exectuted.public ParallelDerivativeEngine(AlignmentDerivativeAlgorithm[][] derivativeAlgorithms)
public AlignmentDerivativeAlgorithm[] getAlgorithms()
public void setVerbose(boolean verbose)
verbose
- true or false.public boolean isVerbose()
public void setNumberOfThreads(int numThreads)
numThreads
- the number of threads that are used.public boolean isIgnoreExceptions()
public void setIgnoreExceptions(boolean ignoreExceptions)
ignoreExceptions
- true if exceptions should be ignored.public int getNumberOfThreads()
public double[][] calculateWeightDerivatives()
public <R> R[] calculateComparatorDerivatives(DerivableComparator<?,R> comp, String keyword)
Copyright (C) 2013, 2014 Benjamin Paaßen, Charlie Krüger, 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