resampler.h
Go to the documentation of this file.
1 
18 #ifndef RECOGNIZER_PREDICTION_ISM_RESAMPLER_H
19 #define RECOGNIZER_PREDICTION_ISM_RESAMPLER_H
20 
21 #include <ISM/common_type/RecognitionResult.hpp>
22 
23 /* ----------------- Local includes ------------------ */
25 
27 {
28  //Realizes importance sampling on Recognition Result vector in shared memory according to their confidence.
29  class Resampler
30  {
31 
32  public:
33 
34  Resampler(bool equal_results_number,
35  unsigned int importance_resampled_size,
36  SharedRecognitionResultsManagerPtr shared_recognition_results_ptr);
37 
38  unsigned int getImportanceResampledSize() const;
39 
40  //This is the central method of this class.
41  std::vector<ISM::RecognitionResult> drawSamples();
42 
44 
45  private:
46 
48  const unsigned int IMPORTANCE_RESAMPLED_SIZE_;
50 
51  };
52 
54 
55 }
56 
57 
58 #endif // RECOGNIZER_PREDICTION_ISM_RESAMPLER_H
const SharedRecognitionResultsManagerPtr shared_recognition_results_manager_ptr_
Definition: resampler.h:49
const unsigned int IMPORTANCE_RESAMPLED_SIZE_
Definition: resampler.h:48
std::vector< ISM::RecognitionResult > drawSamples()
Definition: resampler.cpp:44
Resampler(bool equal_results_number, unsigned int importance_resampled_size, SharedRecognitionResultsManagerPtr shared_recognition_results_ptr)
Definition: resampler.cpp:36
unsigned int getImportanceResampledSize() const
Definition: resampler.cpp:213
boost::shared_ptr< Resampler > ResamplerPtr
Definition: resampler.h:53


asr_recognizer_prediction_ism
Author(s): Aumann Florian, Heller Florian, Hutmacher Robin, Meißner Pascal, Stöckle Patrick, Stroh Daniel
autogenerated on Wed Jan 8 2020 03:18:32