function [KB,KEY] = BR_FOOBA
%
% Variable Table
%   Index   Meaning
% -------------------
KEY(1).name = 'Human';
KEY(2).name = 'Vehicle';
KEY(3).name = 'Car';
KEY(4).name = 'Truck';
KEY(5).name = 'Bus';
KEY(6).name = 'Other';
KEY(7).name = 'Traveling';
KEY(8).name = 'North';
KEY(9).name = 'South';
KEY(10).name = 'East';
KEY(11).name = 'West';
KEY(12).name = 'SizeSmall';
KEY(13).name = 'SizeMedium';
KEY(14).name = 'SizeLarge';
KEY(15).name = 'ShapeVert';
KEY(16).name = 'ShapeRect';
KEY(17).name = 'TurnedEastin6';
KEY(18).name = 'TurnedEastin5';
KEY(19).name = 'TurnedWestin6';
KEY(20).name = 'TurnedWestin5';
KEY(21).name = 'TurnedNorthin6';
KEY(22).name = 'TurnedNorthin5';
KEY(23).name = 'TurnedSouthin6';
KEY(24).name = 'TurnedSouthin5';
KEY(25).name = 'EnterParking1';
KEY(26).name = 'EnterParking2';
KEY(27).name = 'EnterParking3';
KEY(28).name = 'ExitParking1';
KEY(29).name = 'ExitParking2';
KEY(30).name = 'ExitParking3';
KEY(31).name = 'ColorMono';
KEY(32).name = 'ColorVary';
KEY(33).name = 'Wheel';
KEY(34).name = 'OnRoad';
KEY(35).name = 'OnRoadOnly';
KEY(36).name = 'SpeedLow';
KEY(37).name = 'SpeedHigh';
KEY(38).name = 'SpeedGT0';

Human = 1;
Vehicle = 2;
Car = 3;
Truck = 4;
Bus = 5;
Other = 6;
Traveling = 7;
North = 8;
South = 9;
East = 10;
West = 11;
SizeSmall = 12;
SizeMedium = 13;
SizeLarge = 14;
ShapeVert = 15;
ShapeRect = 16;
TurnedEastin6 = 17;
TurnedEastin5 = 18;
TurnedWestin6 = 19;
TurnedWestin5 = 20;
TurnedNorthin6 = 21;
TurnedNorthin5 = 22;
TurnedSouthin6 = 23;
TurnedSouthin5 = 24;
EnterParking1 = 25;
EnterParking2 = 26;
EnterParking3 = 27;
ExitParking1 = 28;
ExitParking2 = 29;
ExitParking3 = 30;
ColorMono = 31;
ColorVary = 32;
Wheel = 33;
OnRoad = 34;
OnRoadOnly = 35;
SpeedLow = 36;
SpeedHigh = 36;
SpeedGT0 = 38;

KB(1).clauses = [-SizeSmall,Human];
KB(1).prob = 0.8;

KB(2).clauses = [-SizeSmall,Other];
KB(2).prob = 0.5;

KB(3).clauses = [-SizeSmall,Vehicle];
KB(3).prob = 0.2;

KB(4).clauses = [-SizeMedium,Car];
KB(4).prob = 0.7;

KB(5).clauses = [-SizeMedium,Human];
KB(5).prob = 0.05;

KB(6).clauses = [-SizeMedium,Truck];
KB(6).prob = 0.2;

KB(7).clauses = [-SizeMedium,Bus];
KB(7).prob = 0.2;

KB(8).clauses = [-SizeLarge,Human];
KB(8).prob = 0.01;

KB(9).clauses = [-SizeLarge,Car];
KB(9).prob = 0.2;

KB(10).clauses = [-SizeLarge,Truck];
KB(10).prob = 0.9;

KB(11).clauses = [-SizeLarge,Bus];
KB(11).prob = 0.9;

KB(12).clauses = [-ShapeVert,Human];
KB(12).prob = 0.9;

KB(13).clauses = [-ShapeVert,Other];
KB(13).prob = 0.2;

KB(14).clauses = [-ShapeVert,Vehicle];
KB(14).prob = 0.2;

KB(15).clauses = [-ShapeRect,Bus];
KB(15).prob = 0.9;

KB(16).clauses = [-ShapeRect,Truck];
KB(16).prob = 0.9;

KB(17).clauses = [-ShapeRect,Car];
KB(17).prob = 0.8;

KB(18).clauses = [-ShapeRect,Human];
KB(18).prob = 0.1;

KB(19).clauses = [-ShapeRect,Other];
KB(19).prob = 0.1;

KB(20).clauses = [-Vehicle,Car];
KB(20).prob = 0.8;

KB(21).clauses = [-Vehicle,Truck];
KB(21).prob = 0.2;

KB(22).clauses = [-Vehicle,Bus];
KB(22).prob = 0.2;

KB(23).clauses = [-ColorMono,Human];
KB(23).prob = 0.2;

KB(24).clauses = [-ColorMono,Vehicle];
KB(24).prob = 0.8;

KB(25).clauses = [-ColorVary,Human];
KB(25).prob = 0.8;

KB(26).clauses = [-ColorVary,Vehicle];
KB(26).prob = 0.2;

KB(27).clauses = [-Wheel,Vehicle];
KB(27).prob = 0.9;

KB(28).clauses = [-Wheel,Human];
KB(28).prob = 0.1;

KB(29).clauses = [-Wheel,Other];
KB(29).prob = 0.1;

KB(30).clauses = [-OnRoad,Vehicle];
KB(30).prob = 0.9;

KB(31).clauses = [-OnRoad,Human];
KB(31).prob = 0.2;

KB(32).clauses = [-OnRoadOnly,Vehicle];
KB(32).prob = 0.95;

KB(33).clauses = [-OnRoadOnly,Human];
KB(33).prob = 0.1;

KB(34).clauses = [-SpeedLow,Human];
KB(34).prob = 0.8;

KB(35).clauses = [-SpeedLow,Other];
KB(35).prob = 0.8;

KB(36).clauses = [-SpeedLow,Vehicle];
KB(36).prob = 0.2;

KB(37).clauses = [-SpeedHigh,Human];
KB(37).prob = 0.01;

KB(38).clauses = [-SpeedHigh,Car];
KB(38).prob = 0.9;

KB(39).clauses = [-SpeedHigh,Truck];
KB(39).prob = 0.8;

KB(40).clauses = [-SpeedHigh,Bus];
KB(40).prob = 0.7;

KB(41).clauses = [-SpeedGT0,Traveling];
KB(41).prob = 0.9;

KB(42).clauses = [-North,-TurnedEastin6,EnterParking1];
KB(42).prob = 0.9;

KB(43).clauses = [-North,-TurnedEastin5,EnterParking2];
KB(43).prob = 0.9;

KB(44).clauses = [-North,-TurnedWestin6,EnterParking3];
KB(44).prob = 0.9;

KB(45).clauses = [-South,-TurnedEastin6,EnterParking1];
KB(45).prob = 0.9;

KB(46).clauses = [-South,-TurnedEastin5,EnterParking2];
KB(46).prob = 0.9;

KB(47).clauses = [-South,-TurnedWestin6,EnterParking3];
KB(47).prob = 0.9;

KB(48).clauses = [-East,-TurnedSouthin6,ExitParking3];
KB(48).prob = 0.9;

KB(49).clauses = [-East,-TurnedNorthin6,ExitParking3];
KB(49).prob = 0.9;

KB(50).clauses = [-West,-TurnedSouthin6,ExitParking1];
KB(50).prob = 0.9;

KB(51).clauses = [-West,-TurnedNorthin6,ExitParking1];
KB(51).prob = 0.9;

KB(52).clauses = [-West,-TurnedSouthin5,ExitParking2];
KB(52).prob = 0.9;

KB(53).clauses = [-West,-TurnedNorthin5,ExitParking2];
KB(53).prob = 0.9;

KB(54).clauses = [-Human,-Vehicle];
KB(54).prob = 1;

KB(55).clauses = [-Car,-Bus];
KB(55).prob = 1;

KB(56).clauses = [-Car,-Truck];
KB(56).prob = 1;

KB(57).clauses = [-Truck,-Bus];
KB(57).prob = 1;

KB(58).clauses = [-Human,-Other];
KB(58).prob = 1;

KB(59).clauses = [-Vehicle,-Other];
KB(59).prob = 1;

KB(60).clauses = [-North,-South];
KB(60).prob = 1;

KB(61).clauses = [-North,-East];
KB(61).prob = 1;

KB(62).clauses = [-North,-West];
KB(62).prob = 1;

KB(63).clauses = [-South,-East];
KB(63).prob = 1;

KB(64).clauses = [-South,-West];
KB(64).prob = 1;

KB(65).clauses = [-East,-West];
KB(65).prob = 1;

KB(66).clauses = [-SizeSmall,-SizeMedium];
KB(66).prob = 1;

KB(67).clauses = [-SizeSmall,-SizeLarge];
KB(67).prob = 1;

KB(68).clauses = [-SizeMedium,-SizeLarge];
KB(68).prob = 1;

KB(69).clauses = [-ShapeVert,-ShapeRect];
KB(69).prob = 1;

KB(70).clauses = [-ColorMono,-ColorVary];
KB(70).prob = 1;

KB(71).clauses = [-SpeedLow,-SpeedHigh];
KB(71).prob = 1;

KB(72).clauses = [-SpeedLow,SpeedGT0];
KB(72).prob = 1;

KB(73).clauses = [-SpeedHigh,SpeedGT0];
KB(73).prob = 1;

