points2intervals: Evaluate intervals

View source: R/values-functions.R

points2intervalsR Documentation

Evaluate intervals

Description

Evaluate intervals vector from points vector.

Usage

points2intervals(x)

Arguments

x

the puntual coordinate vector

Details

Voxel coordinates are usually specified by indicating (x,y,z) the middle point. Another way is to indicate the intervals (xmin,xmax), (ymin,ymax) (zmin,zmax). Since it is assumed that voxels are contiguous, xmax[i] = xmin[i-1], for each axis the coordinates can be stored in a single vector.

Value

the intervals vector (the length of this vector is Nx+1, where Nx = length(x))

See Also

Other Values Utilities: evaluate.epl


planit-group/Rplanit documentation built on Dec. 5, 2022, 11:10 p.m.