Skip to contents

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

pipeData(4, 100)
#> New names:
#>  `` -> `...1`
#>  `` -> `...2`
#>  `` -> `...3`
#>  `` -> `...4`
#> # A tibble: 100 × 4
#>       ...1    ...2    ...3   ...4
#>      <dbl>   <dbl>   <dbl>  <dbl>
#>  1 -0.247   0.0945 -0.667  -0.790
#>  2 -0.0730 -0.346   0.471  -0.856
#>  3  0.397   0.701   0.156  -0.959
#>  4  0.158  -0.0337  0.754  -0.618
#>  5 -0.507  -0.324   0.142  -0.980
#>  6  0.103  -0.371   0.366  -0.895
#>  7  0.371  -0.560   0.0596 -0.989
#>  8 -0.311  -0.443  -0.244  -0.996
#>  9 -0.912   0.711  -0.916   0.256
#> 10  0.577   0.777   0.991  -0.140
#> # ℹ 90 more rows
pipeData(2, 100, 0.5)
#> New names:
#>  `` -> `...1`
#>  `` -> `...2`
#> # A tibble: 100 × 2
#>       ...1   ...2
#>      <dbl>  <dbl>
#>  1  0.0482 -0.762
#>  2  0.683  -0.315
#>  3  0.591  -0.575
#>  4 -0.675  -0.292
#>  5  0.187  -0.792
#>  6  0.570  -0.699
#>  7 -0.924  -0.427
#>  8 -0.732   0.820
#>  9  0.170   0.752
#> 10 -0.217  -0.894
#> # ℹ 90 more rows