volume_simplex {uniformly}R 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,])

[Package uniformly version 0.5.0 Index]