Learn R Programming

uniformly (version 0.5.0)

volume_simplex: Simplex volume

Description

Volume of a simplex (arbitrary dimension).

Usage

volume_simplex(simplex)

Value

The volume of the simplex.

Arguments

simplex

a (d+1) times d matrix giving the vertices of the simplex (rows)

Examples

Run this code
set.seed(666)
simplex <- matrix(rnorm(4*3), nrow=4, ncol=3)
volume_simplex(simplex)
volume_tetrahedron(simplex[1,], simplex[2,], simplex[3,], simplex[4,])

Run the code above in your browser using DataLab