Closed erlebach closed 2 years ago
Hi @erlebach!
Roughly speaking, when you use @RV
macro, ForneyLab
integrates two nodes into your factor graph., i.e. Bernoulli
node and clamped node that contains the value of 0.7
.
I am not sure why you have this question, but you can access the value 0.7
as follows:
g.nodes[:clamp_1].value
Why :clamp_1
? You can access all of your nodes by running:
g.nodes[:clamp_1].value
.
Why this question? Because before writing to Github, I was debugging my code, and was trying to trace information. That is how I learn. I was also looking at the source code, and had not come across "value". I will take another look.
Question seems to be answered, thanks Albert, I will close the issue.
Consider the following code snippet:
My question is: in what data structure is 0.7 stored? I found that
Bernoulli
is astruct
.