Learn R Programming

pcds (version 0.1.8)

num.delaunay.tri: Number of Delaunay triangles based on a 2D data set

Description

Returns the number of Delaunay triangles based on the 2D set of points Yp. See (okabe:2000,sinclair:2016;textualpcds) for more on Delaunay triangulation and the corresponding algorithm.

Usage

num.delaunay.tri(Yp)

Value

Number of Delaunay triangles based on Yp points.

Arguments

Yp

A set of 2D points which constitute the vertices of Delaunay triangles.

Author

Elvan Ceyhan

References

See Also

plotDelaunay.tri

Examples

Run this code
ny<-10

set.seed(1)
Yp<-cbind(runif(ny,0,1),runif(ny,0,1))

num.delaunay.tri(Yp)

Run the code above in your browser using DataLab