Learn R Programming

spinebil (version 1.0.5)

pipe_data: 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)

Value

sample points in tibble format

Arguments

n

number of sample points to generate

p

sample dimensionality

t

thickness of circle, default=0.1

Examples

Run this code
pipe_data(100, 4)
pipe_data(100, 2, 0.5)

Run the code above in your browser using DataLab