ValuesPURPOSEBelief value with all alpha-elements in the Policy.
SYNOPSISfunction v=Values(P,b)
DESCRIPTIONBelief value with all alpha-elements in the Policy. Return the values of the given belief, b, for all the elements stored in the Policy, P. Recall that the optimal element for a belief is the one maximizing its value, i.e., the one maximizing the output of this function. See also MaxAlpha, OptimalAction. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function v=Values(P,b) 0002 % Belief value with all alpha-elements in the Policy. 0003 % 0004 % Return the values of the given belief, b, for all the elements stored 0005 % in the Policy, P. 0006 % Recall that the optimal element for a belief is the one maximizing its 0007 % value, i.e., the one maximizing the output of this function. 0008 % 0009 % See also MaxAlpha, OptimalAction. 0010 0011 v=cellfun(@(e)(Expectation(b,e)),P.elements); 0012 |