gen_trefoil3d: Generate 3-D Trefoil Knot Coordinates (Stereographic...

View source: R/trefoil.R

gen_trefoil3dR Documentation

Generate 3-D Trefoil Knot Coordinates (Stereographic Projection)

Description

This function generates coordinates for a 3-D trefoil knot by applying a stereographic projection from 4-D space.

Usage

gen_trefoil3d(n = 500, p = 4, steps = 5)

Arguments

n

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

p

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

steps

A numeric value (default: 5) representing the number of steps for the theta parameter.

Value

A data containing 3-D trefoil knot.

Examples

set.seed(20240412)
trefoil3d <- gen_trefoil3d(n = 500, p = 4, steps = 5)

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