r_unif_polysph: Sample uniform polyspherical data

View source: R/samplers.R

r_unif_polysphR Documentation

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)

Arguments

n

sample size.

d

vector of size r with dimensions.

Value

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

Examples

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

polykde documentation built on April 16, 2025, 1:11 a.m.