Usage of setNodeDefinition()

The engine.
Post Reply
samoht
Posts: 25
Joined: Wed Apr 28, 2010 1:41 pm

Usage of setNodeDefinition()

Post by samoht »

Hello,

I have a deterministic node mit many states (and also many states in the two dependent nodes). I want to set the check box values in the Definition tab by using the JSmile function "setNodeDefinition(String nodeid, double[] definition)". But on which value to set my values in the definition array? (is it 1.0 for checked box and 0.0 for a unchecked box?)

I have to use Smile to do the job, because the array has the size 14400 and so impossible to be filled manually.

Further how do find out the right position in the array to fill in a value?

Best Regards
Thomas
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Usage of setNodeDefinition()

Post by shooltz[BayesFusion] »

samoht wrote:But on which value to set my values in the definition array? (is it 1.0 for checked box and 0.0 for a unchecked box?)
1.0 and 0.0 will work.
Further how do find out the right position in the array to fill in a value?
The array which is passed to setNodeDefinition is the equivalent of GeNIe's node definition grid in column order (so the leftmost column contains first elements of the array).
Post Reply