public class ParallelDerivativeEngine extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULTTHREADNUM |
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) |
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 |
isVerbose()
If verbose is set to true the ParallelProcessingEngine will give
information about the current state of the calculation.
|
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 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 int getNumberOfThreads()
public double[][] calculateWeightDerivatives()
public <R> R[] calculateComparatorDerivatives(DerivableComparator<?,R> comp)
Copyright © 2014. All rights reserved.