OptimalActionPURPOSEReturns the optimal action for a given belief.
SYNOPSISfunction [a v]=OptimalAction(P,b)
DESCRIPTIONReturns the optimal action for a given belief. Returns the action associated with the element that maximizes the Policy value for a given belief. Additionally it also returns the maximazing value for the belief. See also Policy. CROSS-REFERENCE INFORMATIONThis function calls: This function is called by:
SOURCE CODE0001 function [a v]=OptimalAction(P,b) 0002 % Returns the optimal action for a given belief. 0003 % 0004 % Returns the action associated with the element that maximizes the Policy 0005 % value for a given belief. 0006 % Additionally it also returns the maximazing value for the belief. 0007 % 0008 % See also Policy. 0009 0010 [v nAlpha]=max(Values(P,b)); 0011 a=P.actions{nAlpha}; |