R/mdp_span.r

# function sp = mdp_span(W)

mdp_span <- function(W)

# mdp_span  Returns the span of W 
#           sp(W) = max W(s) - min W(s)

{
	return(max(W) - min(W))
}

Try the MDPtoolbox package in your browser

Any scripts or data that you put into this service are public.

MDPtoolbox documentation built on May 2, 2019, 2:10 p.m.