dec.curve: dec.curve

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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, Alessio Veneziano, Marina Melchionna, Pasquale Raia

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
## Create and plot a 3D curve
require(compositions)
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)

## End(Not run)

Arothron/Arothron documentation built on May 5, 2019, 8:11 a.m.