Learn R Programming

spinebil (version 0.1.0)

pipeData: 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

pipeData(n, p, t = 0.1)

Arguments

n

sample dimensionality

p

number of sample points to generate

t

thickness of circle, default=0.1

Value

sample points in tibble format

Examples

Run this code
# NOT RUN {
pipeData(4, 100)
pipeData(2, 100, 0.5)
# }

Run the code above in your browser using DataLab