Generating a sample of points on a pipe
pipe_data.Rd
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.
Examples
pipe_data(100, 4)
#> # A tibble: 100 × 4
#> V1 V2 V3 V4
#> <dbl> <dbl> <dbl> <dbl>
#> 1 -0.126 0.419 0.381 0.921
#> 2 0.692 -0.688 -0.948 0.126
#> 3 0.311 0.991 -0.859 -0.410
#> 4 -0.802 0.00303 0.257 -0.945
#> 5 0.337 0.595 0.705 -0.769
#> 6 -0.860 -0.874 -0.212 0.952
#> 7 0.468 -0.276 0.110 0.951
#> 8 0.166 -0.981 0.523 0.822
#> 9 0.852 -0.0344 0.954 -0.0628
#> 10 0.826 0.303 0.757 0.590
#> # ℹ 90 more rows
pipe_data(100, 2, 0.5)
#> # A tibble: 100 × 2
#> V1 V2
#> <dbl> <dbl>
#> 1 0.837 0.254
#> 2 0.840 -0.572
#> 3 -0.919 0.723
#> 4 0.610 0.561
#> 5 0.994 0.367
#> 6 0.622 -0.745
#> 7 0.727 0.621
#> 8 -0.640 -0.271
#> 9 -0.584 0.923
#> 10 -0.353 -0.775
#> # ℹ 90 more rows