Institut de Robòtica i Informàtica Industrial

Belief

PURPOSE ^

Belief constructor.

SYNOPSIS ^

function b=Belief(varargin)

DESCRIPTION ^

   Belief 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 INFORMATION ^

This function calls:
This function is called by:
  • DBelief Discrete belief constructor.
  • GBelief Gaussian-based belief constructor.
  • PBelief Particle-based belief constructor.

SOURCE CODE ^

0001 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


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003