volume_simplex: Simplex volume

View source: R/volumes.R

volume_simplexR Documentation

Simplex volume

Description

Volume of a simplex (arbitrary dimension).

Usage

volume_simplex(simplex)

Arguments

simplex

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

Value

The volume of the simplex.

Examples

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,])

uniformly documentation built on March 18, 2022, 6:44 p.m.