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.

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

pipeData(4, 100)
#> New names:
#>  `` -> `...1`
#>  `` -> `...2`
#>  `` -> `...3`
#>  `` -> `...4`
#> # A tibble: 100 × 4
#>       ...1    ...2    ...3   ...4
#>      <dbl>   <dbl>   <dbl>  <dbl>
#>  1 -0.677  -0.450   0.765   0.626
#>  2 -0.257  -0.425   0.0585 -0.970
#>  3  0.665   0.0992 -0.902  -0.429
#>  4 -0.220  -0.612  -0.629   0.725
#>  5 -0.0231  0.440   0.749   0.721
#>  6 -0.379  -0.574   0.870  -0.415
#>  7 -0.319   0.0446  0.366   0.964
#>  8  0.474  -0.559   0.683  -0.789
#>  9  0.569  -0.737   0.757   0.693
#> 10 -0.600  -0.548  -0.867  -0.446
#> # ℹ 90 more rows
pipeData(2, 100, 0.5)
#> New names:
#>  `` -> `...1`
#>  `` -> `...2`
#> # A tibble: 100 × 2
#>      ...1   ...2
#>     <dbl>  <dbl>
#>  1  0.835 -0.574
#>  2  0.326  0.675
#>  3 -0.576  0.640
#>  4 -0.375 -0.627
#>  5  0.849  0.513
#>  6 -0.844  0.505
#>  7 -0.393 -0.643
#>  8  0.560 -0.791
#>  9  0.840  0.333
#> 10 -0.694 -0.320
#> # ℹ 90 more rows