Learn R Programming

caRamel (version 1.4)

vol_splx: Volume of a simplex

Description

calculates the volume of a simplex

Usage

vol_splx(S)

Value

V : simplex volume

Arguments

S

: matrix (d+1) rows * d columns containing the coordinates in d-dim of d + 1 vertices of a simplex

Author

Fabrice Zaoui

Examples

Run this code
# Definition of the parameters
S <- matrix(rexp(6), 3, 2)
# Call the function
res <- vol_splx(S)

Run the code above in your browser using DataLab