dec.curve {Arothron}R Documentation

dec.curve

Description

This function computes the order of points on a open 3D curve and finds intermediate points

Usage

dec.curve(mat_input, mag, plot = TRUE)

Arguments

mat_input

numeric: a kx3 matrix

mag

numeric: how many times will be divided by the number of initial points

plot

logical: if TRUE will be plotted the starting and final point matrices

Value

matt numeric: a kx3 matrix with points coordinates

Author(s)

Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo Piras, Pasquale Raia, Alessio Veneziano

Examples

## Create and plot a 3D curve
require(compositions)
require(rgl)
curve_3D<-cbind(1:10,seq(1,5,length=10),rnorm(10,sd = 0.2))
plot3D(curve_3D,bbox=FALSE)
rgl.close()
## Create and plot the new 3D curve (with intermediate points)
dec_curve_3D<-dec.curve(curve_3D, 2, plot = TRUE)

[Package Arothron version 2.0.2 Index]