Main Page
Namespaces
Classes
Files
File List
File Members
include
asr_recognizer_prediction_ism
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 ------------------ */
24
#include "
asr_recognizer_prediction_ism/shared_recognition_results_manager.h
"
25
26
namespace
recognizer_prediction_ism
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
43
bool
recognitionResultsAvailable
();
44
45
private
:
46
47
const
bool
EQUAL_RESULTS_NUMBER_
;
48
const
unsigned
int
IMPORTANCE_RESAMPLED_SIZE_
;
49
const
SharedRecognitionResultsManagerPtr
shared_recognition_results_manager_ptr_
;
50
51
};
52
53
typedef
boost::shared_ptr<Resampler>
ResamplerPtr
;
54
55
}
56
57
58
#endif // RECOGNIZER_PREDICTION_ISM_RESAMPLER_H
recognizer_prediction_ism::Resampler::shared_recognition_results_manager_ptr_
const SharedRecognitionResultsManagerPtr shared_recognition_results_manager_ptr_
Definition:
resampler.h:49
shared_recognition_results_manager.h
boost::shared_ptr< SharedRecognitionResultsManager >
recognizer_prediction_ism::Resampler::IMPORTANCE_RESAMPLED_SIZE_
const unsigned int IMPORTANCE_RESAMPLED_SIZE_
Definition:
resampler.h:48
recognizer_prediction_ism::Resampler::recognitionResultsAvailable
bool recognitionResultsAvailable()
Definition:
resampler.cpp:208
recognizer_prediction_ism
Definition:
param_helper.h:20
recognizer_prediction_ism::Resampler::drawSamples
std::vector< ISM::RecognitionResult > drawSamples()
Definition:
resampler.cpp:44
recognizer_prediction_ism::Resampler::Resampler
Resampler(bool equal_results_number, unsigned int importance_resampled_size, SharedRecognitionResultsManagerPtr shared_recognition_results_ptr)
Definition:
resampler.cpp:36
recognizer_prediction_ism::Resampler
Definition:
resampler.h:29
recognizer_prediction_ism::Resampler::getImportanceResampledSize
unsigned int getImportanceResampledSize() const
Definition:
resampler.cpp:213
recognizer_prediction_ism::Resampler::EQUAL_RESULTS_NUMBER_
const bool EQUAL_RESULTS_NUMBER_
Definition:
resampler.h:47
recognizer_prediction_ism::ResamplerPtr
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