gen_sphericalspiral: Generate Spherical Spiral

View source: R/trigonometric.R

gen_sphericalspiralR Documentation

Generate Spherical Spiral

Description

This function generates a dataset representing a structure with a spherical spiral.

Usage

gen_sphericalspiral(n = 500, p = 4, spins = 1)

Arguments

n

A numeric value (default: 500) representing the sample size.

p

A numeric value (default: 4) representing the number of dimensions.

spins

A numeric value (default: 1) representing the number of loops of the spiral.

Value

A data containing a spherical spiral.

Examples

set.seed(20240412)
sphericalspiral <- gen_sphericalspiral(n = 500, p = 4, spins = 1)

cardinalR documentation built on Aug. 21, 2025, 5:27 p.m.