
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'boxx':
diameter(x)
## S3 method for class 'boxx':
volume(x)
## S3 method for class 'boxx':
shortside(x)
## S3 method for class 'boxx':
eroded.volumes(x, r)
"boxx"
).diameter.boxx
, shortside.boxx
and
volume.boxx
, a single numeric
value. For eroded.volumes.boxx
, a numeric vector of the same length
as r
.diameter.boxx
,
volume.boxx
and shortside.boxx
compute the diameter, volume and shortest side length of the box. eroded.volumes.boxx
computes, for each entry r[i]
,
the volume of the smaller box obtained by removing a slab of
thickness r[i]
from each face of the box. This smaller box is
the subset consisting of points that lie at least r[i]
units
away from the boundary of the box.
boxx
X <- boxx(c(0,10),c(0,10),c(0,5))
diameter(X)
volume(X)
shortside(X)
hd <- shortside(X)/2
eroded.volumes(X, seq(0,hd, length=10))
Run the code above in your browser using DataLab