Page MenuHomec4science

SequenceModelComputer.hpp
No OneTemporary

File Metadata

Created
Sat, May 4, 02:50

SequenceModelComputer.hpp

#ifndef SEQUENCEMODELCOMPUTER_HPP
#define SEQUENCEMODELCOMPUTER_HPP
#include <ModelComputer.hpp>
#include <Matrix2D.hpp>
#include <Matrix4D.hpp>
#include <ThreadPool.hpp>
class SequenceModelComputer : public ModelComputer
{
public:
/*!
* \brief Constructs an object to retrieve
* the sequence model given the data and their
* classification results.
* \param data the data.
* \param post_prob the data class assignment
* probabilities.
* \param bckg_class whether the last class of the
* classification (posterior probabilities) is a
* background class.
* \param n_threads the number of parallel threads
* to run the computations. 0 means no parallel
* computing, everything is run on the main thread.
*/
SequenceModelComputer(Matrix2D<int>&& data,
const Matrix4D<double>& post_prob,
bool bckg_class,
size_t n_threads) ;
/*!
* \brief Destructor.
*/
virtual ~SequenceModelComputer() override ;
protected:
/*!
* \brief the threads.
*/
ThreadPool* threads ;
} ;
#endif // SEQUENCEMODELCOMPUTER_HPP

Event Timeline