Class MultiThreadTMVASolver

java.lang.Object
solvers.queueingnet.treeAlgorithms.TreeTraverserMulti
solvers.queueingnet.treeAlgorithms.tmva.MultiThreadTMVASolver
All Implemented Interfaces:
IThreadedTMVASolver

public class MultiThreadTMVASolver extends TreeTraverserMulti implements IThreadedTMVASolver
Tree MVA solver that uses multiple threads.
Author:
Ben Homer, 2014.
  • Constructor Details

    • MultiThreadTMVASolver

      public MultiThreadTMVASolver(TMVACore tmvaCore, int numThreads)
      Constructor.
      Parameters:
      tmvaCore - The TMVA core implementation.
      numThreads - The number of threads to use.
  • Method Details

    • solve

      public MVAResults solve(Node node, PopulationVector N)
      Solves the network rooted at the specified node using TMVA.
      Specified by:
      solve in interface IThreadedTMVASolver
      Parameters:
      node - The root node.
      N - The population vector.
      Returns:
      the resulting mva results
    • getComputeLeafNodeThread

      public Thread getComputeLeafNodeThread(Node node, PopulationVector pv)
      Computes results at a leaf node by creating a suitable thread to run the computation.
      Specified by:
      getComputeLeafNodeThread in class TreeTraverserMulti
      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

      public Thread getSubnetNodeThread(Node node, PopulationVector pv)
      Computes results at a subnetwork node by creating a suitable thread to run the computation.
      Specified by:
      getSubnetNodeThread in class TreeTraverserMulti
      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.