powered by
diameter(w)
The argument w should be a window (an object of class "owin", see owin.object for details) or can be given in any format acceptable to as.owin().
w
"owin"
owin.object
as.owin()
owin
as.owin
w <- owin(c(0,1),c(0,1)) diameter(w) # returns sqrt(2) data(letterR) diameter(letterR)
Run the code above in your browser using DataLab