volume_pball: p-ball volume

View source: R/volumes.R

volume_pballR Documentation

p-ball volume

Description

Euclidean volume of a p-ball (arbitrary dimension).

Usage

volume_pball(d, p, r = 1)

Arguments

d

dimension

p

exponent in the p-norm, a positive number

r

radius of the ball

Value

The volume of the p-ball with radius r.

Examples

volume_pball(d=4, p=2, r=2)
volume_sphere(d=4, r=2)

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