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

pipe_data(n, p, t = 0.1)

Arguments

n

number of sample points to generate

p

sample dimensionality

t

thickness of circle, default=0.1

Value

sample points in tibble format

Examples

pipe_data(100, 4)
#> # A tibble: 100 × 4
#>         V1      V2      V3     V4
#>      <dbl>   <dbl>   <dbl>  <dbl>
#>  1  0.0376  0.0422 -0.667  -0.790
#>  2  0.212  -0.398   0.471  -0.856
#>  3  0.682   0.648   0.156  -0.959
#>  4  0.443  -0.0859  0.754  -0.618
#>  5 -0.221  -0.376   0.142  -0.980
#>  6  0.388  -0.423   0.366  -0.895
#>  7  0.656  -0.613   0.0596 -0.989
#>  8 -0.0257 -0.495  -0.244  -0.996
#>  9 -0.627   0.658  -0.916   0.256
#> 10  0.862   0.725   0.991  -0.140
#> # ℹ 90 more rows
pipe_data(100, 2, 0.5)
#> # A tibble: 100 × 2
#>         V1     V2
#>      <dbl>  <dbl>
#>  1  0.0772 -0.716
#>  2  0.712  -0.269
#>  3  0.620  -0.529
#>  4 -0.646  -0.245
#>  5  0.216  -0.746
#>  6  0.599  -0.653
#>  7 -0.895  -0.381
#>  8 -0.703   0.866
#>  9  0.199   0.798
#> 10 -0.188  -0.848
#> # ℹ 90 more rows