badmf.sims.2sphere: Sample from Unit 2-Sphere

Description Usage Arguments Author(s) Examples

Description

Sample from the 2-sphere in d-dimensions.

Usage

1
badmf.sims.2sphere(n, r, d, cov.scale = 0)

Arguments

n

the number of samples.

r

the radius of the 2-ball. Defaults to 1.

d

the number of dimensions.

cov.scale

if desired, sample from 2-ball with error sigma. Defaults to 0, which has no noise.

Author(s)

Eric Bridgeford

Examples

1
2
3
library(badmf)
# sample 100 points from 3-d 2-ball with radius 2
X <- badmf.sims.rball(100, 3, 2)

ebridge2/badmf documentation built on June 4, 2019, 8:53 a.m.