Recent Posts

Pages: 1 [2] 3 4 ... 10
11
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by Anders L Madsen on May 05, 2018, 19:10:51  »
Quote
Is it possible to assign multiple nodes into an array in MATLAB and then call them from there instead of "one-by-one" method?

Yes, this should not be a problem. I'm not certain of the exact syntex, but using the HUGIN .NET API it should be something like this:

Code: [Select]
Node []array;
array = new Node[2];
array[0]=A;
array[1]=B;
hope this helps
12
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by Son Nguyen on April 30, 2018, 14:44:42  »
Is it possible to assign multiple nodes into an array in MATLAB and then call them from there instead of "one-by-one" method?
For example:
A=d.GetNodeByName('A');
B=d.GetNodeByName('B');
Nodes={A;B};
Here we could call out Nodes(i) with i=1:2 in
Nodes(1).EnterFinding(0,0.1); instead of A.EnterFinding(0,0.1);
This is useful in using a "for" loop.
13
General Discussion / Re: Expressing Fault Tree Analysis in BBN
« Last post by uppglassmel on April 10, 2018, 16:49:47  »
Hej Anders,

Thank you for showing me the 'noisy-add' gate, it worked for an OR-gate as well.

Attached it here in case someone else might be interested in it

Very appreciative of your time!

Mel
14
General Discussion / Re: Expressing Fault Tree Analysis in BBN
« Last post by Anders L Madsen on April 07, 2018, 20:53:23  »
Hello,

If you want P(C1=true|P2=true,P3=true)=0.3*0.3=0.09, then you can achieve this using a "noisy-add" gate as demonstrated in the attached model. You set P2_input=true and P3_input=true to get the desire result.

Hope this helps.
15
General Discussion / Expressing Fault Tree Analysis in BBN
« Last post by uppglassmel on April 06, 2018, 17:01:10  »
Hello,

I am interested in using BBN to modify probabilities that are being fed into a Fault Tree event node. Hence, I would like to also incorporate the Fault Tree Analysis as part of the BBN node.

I have seen some researchers (J.E. Vinnem et al "Risk Modelling of maintenance work on major process equipment on offshore petroleum installations") where they have configured Fault Tree gates in HUGIN by having inputs as "1" or "0" according to the states of the child node such they it resemble a AND-gate or OR-gate.

I have done the same, but my outcome node's results are only "1" or "0" because the values in the conditional probability tables(meant to describe the node as AND or OR gates) are propagated as the actual probabilities.

Do you have any advice what I can do ( my model is attached).

I mean to model C1 as a outcome node, with C2 (0.7 False, 0.3 True) and C3 (0.7 False, 0.3 True) as the input nodes. Based on C1 having the nature of an AND-gate, if I feed evidence that C2 and C3 is true, then I would like to see C1 being reflected as (0.3 X 0.3 = 0.09 that True will occur).

Thank you in advance, I hope I have been clear

Mel
16
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by Anders L Madsen on February 17, 2018, 22:02:54  »
Hello,

This line of code is not correct:
Code: [Select]
A_table=d.GetTable ('A');
You should invoke GetTable on A as in:
Code: [Select]
A_table=A.GetTable ();
The node A has a table (a representation of its CPT).

hope this helps
Anders
17
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by MatteoV on February 15, 2018, 16:33:26  »
Dear Anders,

Please find attached the .m file and the corresponding Hugin file.

Hope this helps!

Thank you!!!

18
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by Anders L Madsen on February 09, 2018, 19:50:57  »
Hi,

Domain does not have a table. You need to access the node. Can you send the code that produces the error?
19
FAQ / Re: How can I use HUGIN in Matlab?
« Last post by MatteoV 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?
20
HUGIN GUI Discussion / Re: Align Pics for Focus Stacking
« Last post by Anders L Madsen on January 03, 2018, 10:06:30  »
Hello,

Are you aware that our HUGIN is a tool for probabilistic graphical models?

Best regards
anders
Pages: 1 [2] 3 4 ... 10