Learn R Programming

polykde (version 1.1.7)

r_unif_polysph: Sample uniform polyspherical data

Description

Simulates from a uniform distribution on the polysphere \(\mathcal{S}^{d_1} \times \cdots \times \mathcal{S}^{d_r}\).

Usage

r_unif_polysph(n, d)

Value

A matrix of size c(n, sum(d) + r) with the sample.

Arguments

n

sample size.

d

vector of size r with dimensions.

Examples

Run this code
# Simulate uniform data on (S^1)^2
r_unif_polysph(n = 10, d = c(1, 1))

Run the code above in your browser using DataLab