Class used to execute the bayes global operations. More...
#include <BayesGlobalOperation.h>
Public Member Functions | |
| BayesGlobalOperation () | |
| Default constructor. More... | |
| void | execute () |
| Function to execute the bayes operation. More... | |
| void | setParameters (te::sa::BayesInputParams *inParams, te::sa::BayesOutputParams *outParams) |
| ~BayesGlobalOperation () | |
| Virtual destructor. More... | |
Protected Member Functions | |
| std::auto_ptr< te::mem::DataSet > | createDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType) |
| std::auto_ptr< te::da::DataSetType > | createDataSetType (te::da::DataSetType *dsType) |
| void | runBayesGlobal (te::mem::DataSet *ds, std::size_t eventIdx, std::size_t popIdx, std::size_t bayesIdx) |
| void | saveDataSet (te::da::DataSet *dataSet, te::da::DataSetType *dsType) |
Protected Attributes | |
| std::auto_ptr< te::sa::BayesInputParams > | m_inputParams |
| Attribute with the bayes input parameters. More... | |
| std::auto_ptr< te::sa::BayesOutputParams > | m_outputParams |
| Attribute with the bayes output parameters. More... | |
Class used to execute the bayes global operations.
Definition at line 55 of file BayesGlobalOperation.h.
| te::sa::BayesGlobalOperation::BayesGlobalOperation | ( | ) |
Default constructor.
Definition at line 49 of file BayesGlobalOperation.cpp.
| te::sa::BayesGlobalOperation::~BayesGlobalOperation | ( | ) |
Virtual destructor.
Definition at line 53 of file BayesGlobalOperation.cpp.
|
protected |
Function used to create the output dataset
Definition at line 121 of file BayesGlobalOperation.cpp.
References te::da::DataSet::getNumProperties(), te::da::DataSet::getValue(), te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setValue(), and TE_SA_BAYES_ATTR_NAME.
|
protected |
Function used to create the output dataset type
Definition at line 96 of file BayesGlobalOperation.cpp.
References te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::dt::CompositeProperty::getProperties(), te::dt::Property::setId(), te::dt::Property::setParent(), and TE_SA_BAYES_ATTR_NAME.
| void te::sa::BayesGlobalOperation::execute | ( | ) |
Function to execute the bayes operation.
Definition at line 57 of file BayesGlobalOperation.cpp.
References TE_SA_BAYES_ATTR_NAME.
Referenced by te::sa::BayesGlobalDialog::onOkPushButtonClicked().
|
protected |
Definition at line 151 of file BayesGlobalOperation.cpp.
References te::mem::DataSet::getDouble(), te::common::TaskProgress::isActive(), te::mem::DataSet::moveBeforeFirst(), te::mem::DataSet::moveNext(), te::common::TaskProgress::pulse(), te::mem::DataSet::setDouble(), te::common::TaskProgress::setMessage(), te::common::TaskProgress::setTotalSteps(), te::mem::DataSet::size(), and TE_TR.
|
protected |
Function used to save the output dataset
Definition at line 84 of file BayesGlobalOperation.cpp.
References te::da::DataSet::moveBeforeFirst().
| void te::sa::BayesGlobalOperation::setParameters | ( | te::sa::BayesInputParams * | inParams, |
| te::sa::BayesOutputParams * | outParams | ||
| ) |
Definition at line 78 of file BayesGlobalOperation.cpp.
Referenced by te::sa::BayesGlobalDialog::onOkPushButtonClicked().
|
protected |
Attribute with the bayes input parameters.
Definition at line 87 of file BayesGlobalOperation.h.
|
protected |
Attribute with the bayes output parameters.
Definition at line 89 of file BayesGlobalOperation.h.