2
« on: February 09, 2018, 19:01:50 »
Hi,
Thank you for this topic and short code.
I need to use Hugin with Matlab for a case study. I do know that using C++ I can specify the prior distribution of a node (A) by using a simple code as follows:
Table *table = A->getTable ();
NumberList data = table->getData ();
data[0] = 0.5;
data[1] = 0.4;
data[2] = 0.1;
table->setData (data);
Within the Matlab framework, thanks to your suggestion, I am able to get the name name, Select the state (SelectState) and retrieving the belief of the network node by using GetBelief. However, I am not able to assign the prior distribution of to a node. In fact, I get the following error message "No appropriate method, property, or field 'GetTable' for class 'HAPI.Domain'." or "No appropriate method, property, or field 'getTable' for class 'HAPI.Domain'. "
I do have this problem also with other command, such as getName, getMean etc.
Do you kindly have any suggestion for this?
Thanks a lot!
Any possible solution?