function [KB,KEY] = BR_KB_ENT
%
% 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 = 'SizeSmall';
KEY(8).name = 'SizeMedium';
KEY(9).name = 'SizeLarge';
KEY(10).name = 'ShapeVert';
KEY(11).name = 'ShapeRect';
KEY(12).name = 'ColorMono';
KEY(13).name = 'ColorVary';
KEY(14).name = 'Wheel';
KEY(15).name = 'OnRoad';
KEY(16).name = 'OnRoadOnly';
KEY(17).name = 'SpeedLow';
KEY(18).name = 'SpeedHigh';
KEY(19).name = 'SpeedGT0';

Human = 1;
Vehicle = 2;
Car = 3;
Truck = 4;
Bus = 5;
Other = 6;
SizeSmall = 7;
SizeMedium = 8;
SizeLarge = 9;
ShapeVert = 10;
ShapeRect = 11;
ColorMono = 12;
ColorVary = 13;
Wheel = 14;
OnRoad = 15;
OnRoadOnly = 16;
SpeedLow = 17;
SpeedHigh = 18;
SpeedGT0 = 19;

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.8;

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

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

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

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

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

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

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.8;

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

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.9;

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

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

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

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

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

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.8;

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

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

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

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

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

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

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

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.8;

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

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 = [-Human,-Vehicle];
KB(41).prob = 0.9;
