#include <BayesLocalOperation.h>
Public Member Functions | |
BayesLocalOperation () | |
Default constructor. More... | |
void | execute () |
Function to execute the bayes operation. More... | |
void | setParameters (te::sa::BayesInputParams *inParams, te::sa::BayesOutputParams *outParams) |
~BayesLocalOperation () | |
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 | runBayesLocal (te::mem::DataSet *ds, std::size_t idIdx, std::size_t eventIdx, std::size_t popIdx, std::size_t neighEventIdx, std::size_t neighPopIdx, std::size_t bayesIdx, std::size_t gpmEventIdx, std::size_t gpmPopIdx) |
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... | |
Definition at line 55 of file BayesLocalOperation.h.
te::sa::BayesLocalOperation::BayesLocalOperation | ( | ) |
Default constructor.
Definition at line 49 of file BayesLocalOperation.cpp.
te::sa::BayesLocalOperation::~BayesLocalOperation | ( | ) |
Virtual destructor.
Definition at line 53 of file BayesLocalOperation.cpp.
|
protected |
Function used to create the output dataset
Definition at line 142 of file BayesLocalOperation.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(), TE_SA_BAYES_ATTR_NAME, TE_SA_BAYESEVENT_ATTR_NAME, and TE_SA_BAYESPOP_ATTR_NAME.
|
protected |
Function used to create the output dataset type
Definition at line 109 of file BayesLocalOperation.cpp.
References te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::dt::CompositeProperty::getProperties(), te::dt::Property::setId(), te::dt::Property::setParent(), TE_SA_BAYES_ATTR_NAME, TE_SA_BAYESEVENT_ATTR_NAME, and TE_SA_BAYESPOP_ATTR_NAME.
void te::sa::BayesLocalOperation::execute | ( | ) |
Function to execute the bayes operation.
Definition at line 57 of file BayesLocalOperation.cpp.
References te::sa::AssociateGPMVertexAttribute(), TE_SA_BAYES_ATTR_NAME, TE_SA_BAYESEVENT_ATTR_NAME, and TE_SA_BAYESPOP_ATTR_NAME.
Referenced by te::sa::BayesLocalDialog::onOkPushButtonClicked().
|
protected |
Definition at line 178 of file BayesLocalOperation.cpp.
References te::da::DataSet::getAsString(), te::graph::Vertex::getAttributes(), te::sa::GetDataValue(), te::mem::DataSet::getDouble(), te::graph::Edge::getIdFrom(), te::graph::Edge::getIdTo(), te::graph::Vertex::getSuccessors(), 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 97 of file BayesLocalOperation.cpp.
References te::da::DataSet::moveBeforeFirst().
void te::sa::BayesLocalOperation::setParameters | ( | te::sa::BayesInputParams * | inParams, |
te::sa::BayesOutputParams * | outParams | ||
) |
Definition at line 91 of file BayesLocalOperation.cpp.
Referenced by te::sa::BayesLocalDialog::onOkPushButtonClicked().
|
protected |
Attribute with the bayes input parameters.
Definition at line 88 of file BayesLocalOperation.h.
|
protected |
Attribute with the bayes output parameters.
Definition at line 90 of file BayesLocalOperation.h.