BeliefPURPOSEBelief constructor.
SYNOPSISfunction b=Belief(varargin)
DESCRIPTIONBelief constructor. Defines the basic belief. Currently it include no information but is used for queries such as isa(b,'Belief') and to implement functions generic to all kind of beliefs. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function b=Belief(varargin) 0002 % Belief constructor. 0003 % 0004 % Defines the basic belief. 0005 % Currently it include no information but is used for queries such as 0006 % isa(b,'Belief') and to implement functions generic to all kind of 0007 % beliefs. 0008 0009 switch nargin 0010 case 0 0011 b.dummy=1; 0012 b=class(b,'Belief'); 0013 0014 case 1 0015 if isa(varargin{1},'Belief') 0016 b=varargin{1}; 0017 else 0018 error('Belief copy constructor with wrong parameter'); 0019 end 0020 end 0021 |