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

stla/uniformly documentation built on July 29, 2023, 4:35 p.m.