Class MultiThreadTMVASolver
java.lang.Object
solvers.queueingnet.treeAlgorithms.TreeTraverserMulti
solvers.queueingnet.treeAlgorithms.tmva.MultiThreadTMVASolver
- All Implemented Interfaces:
IThreadedTMVASolver
Tree MVA solver that uses multiple threads.
- Author:
- Ben Homer, 2014.
-
Field Summary
Fields inherited from class TreeTraverserMulti
taskExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComputeLeafNodeThread(Node node, PopulationVector pv) Computes results at a leaf node by creating a suitable thread to run the computation.getSubnetNodeThread(Node node, PopulationVector pv) Computes results at a subnetwork node by creating a suitable thread to run the computation.solve(Node node, PopulationVector N) Solves the network rooted at the specified node using TMVA.Methods inherited from class TreeTraverserMulti
traverse
-
Constructor Details
-
MultiThreadTMVASolver
Constructor.- Parameters:
tmvaCore- The TMVA core implementation.numThreads- The number of threads to use.
-
-
Method Details
-
solve
Solves the network rooted at the specified node using TMVA.- Specified by:
solvein interfaceIThreadedTMVASolver- Parameters:
node- The root node.N- The population vector.- Returns:
- the resulting mva results
-
getComputeLeafNodeThread
Computes results at a leaf node by creating a suitable thread to run the computation.- Specified by:
getComputeLeafNodeThreadin classTreeTraverserMulti- Parameters:
node- The leaf node under consideration.pv- The population vector to use for the computation.- Returns:
- The thread which will carry out the computation.
-
getSubnetNodeThread
Computes results at a subnetwork node by creating a suitable thread to run the computation.- Specified by:
getSubnetNodeThreadin classTreeTraverserMulti- Parameters:
node- The subnetwork node under consideration.pv- The population vector to use for the computation.- Returns:
- The thread which will carry out the computation.
-