generate_ashape2d {ashapesampler}R Documentation

Generate 2D alpha shape

Description

Generate 2D alpha shape

Usage

generate_ashape2d(
  point_cloud,
  J,
  tau,
  delta = 0.05,
  afixed = TRUE,
  mu = NULL,
  sig = NULL,
  sample_rad = NULL,
  acc_rad = NULL,
  k_min = 2,
  eps = 1e-04,
  cores = 1
)

Arguments

point_cloud

2 column matrix of all points from all shapes in initial data set

J

number of shapes in initial (sub) data set

tau

tau bound vector for shapes input

delta

probability of not preserving homology; default is 0.05

afixed

boolean, whether to sample alpha or leave fixed based on tau. Default FALSE

mu

mean of truncated distribution from which alpha sampled; default tau/3

sig

standard deviation of truncated distribution from which alpha sampled; default tau/12

sample_rad

radius of ball around each point in point cloud from which to sample; default tau/8

acc_rad

radius of ball to check around potential sampled points for whether to accept or reject new point; default tau/4

k_min

number of points needed in radius tau of point cloud to accept a sample

eps

amount to subtract from tau/2 to give alpha. Defaul 1e-4.

cores

number of computer cores for parallelizing. Default 1.

Value

new_ashape two dimensional alpha shape object from alphahull library


[Package ashapesampler version 1.0.0 Index]