// Bayesian Network // Elvira format bnet "Mixed1" { // Network Properties kindofgraph = "directed"; visualprecision = "0.00"; version = 1.0; default node states = (absent , present); // Variables node X1(continuous) { title = "NodeX1"; kind-of-node = chance; type-of-variable = continuous; pos_x =201; pos_y =118; relevance = 7.0; purpose = ""; min = 0.0; max = 2.0; precision = 2; } node X2(finite-states) { title = "NodeX2"; kind-of-node = chance; type-of-variable = finite-states; pos_x =523; pos_y =95; relevance = 7.0; purpose = ""; num-states = 2; states = (yes no); } node X3(continuous) { title = "NodeX3"; kind-of-node = chance; type-of-variable = continuous; pos_x =221; pos_y =326; relevance = 7.0; purpose = ""; min = 0.0; max = 2.0; precision = 2; } // Links of the associated graph: link X1 X2; link X2 X3; //Network Relationships: relation X1 { comment = ""; kind-of-relation = potential; deterministic=false; values= continuous-tree ( case X1(0.0, 1.0, 2.0) { 0 = 2.0000003252356366-1.0000001626178183* exp( 0.5 * X1); 1 = 0.0 + 0.06368161035576286* exp( 1.0 * X1); } ); } relation X2 X1 { comment = ""; kind-of-relation = potential; deterministic=false; values= continuous-tree ( case X1(0.0, 1.0, 2.0) { 0 = case X2 { yes = 0.3; no = 0.7; } 1 = case X2 { yes = 0.6; no = 0.4; } } ); } relation X3 X2 { comment = ""; kind-of-relation = potential; deterministic=false; values= continuous-tree ( case X2 { yes = case X3(0.0, 1.0, 2.0) { 0 = 0.0 + 0.436483* exp( 1.0 * X3); 1 = 0.25; } no = case X3(0.0, 1.0, 2.0) { 0 = 0.0 + 0.790988* exp( -1.0 * X3); 1 = 0.5; } } ); } }