pipe_data: Generating a sample of points on a pipe

View source: R/sampling_functions.R

pipe_dataR Documentation

Generating a sample of points on a pipe

Description

Points are drawn from a uniform distribution between -1 and 1, the pipe structure is generated by rejecting points if they are not on a circle with radius 1 and thickness t in the last two parameters.

Usage

pipe_data(n, p, t = 0.1)

Arguments

n

number of sample points to generate

p

sample dimensionality

t

thickness of circle, default=0.1

Value

sample points in tibble format

Examples

pipe_data(100, 4)
pipe_data(100, 2, 0.5)

spinebil documentation built on Nov. 5, 2025, 7:35 p.m.