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)

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