MDP Toolbox for MATLAB

mdp_span

Computes the span of a vector.

Syntax

sp = span(W)

Description

mdp_span computes the span of the W vector :
     max W(s) - min W(s)
       s                  s

Argument

Evaluation

Example
>> W = [1; 2; 3; 4];

>> sp = mdp_span(W)
sp =
   3


MDP Toolbox for MATLAB


MDPtoolbox/documentation/mdp_span.html
Page created on July 31, 2001. Last update on August 31, 2009.