pipeData: Generating a sample of points on a pipe

Description Usage Arguments Value Examples

View source: R/samplingFunctions.R

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

1
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

1
2
pipeData(4, 100)
pipeData(2, 100, 0.5)

spinebil documentation built on Aug. 28, 2019, 5:04 p.m.