sampling3Dashape {ashapesampler}R Documentation

Sample 3D alpha shapes

Description

This function takes parameter input from user and returns list of three dimensional alpha shape objects from the ahull package.

Usage

sampling3Dashape(
  N,
  n.dependent = TRUE,
  nconnect = TRUE,
  nhomology = FALSE,
  n.noise = FALSE,
  afixed = FALSE,
  mu = 0.24,
  sigma = 0.05,
  delta = 0.05,
  n = 20,
  alpha = 0.24,
  lambda = 3,
  r = 1,
  rmin = 0.25,
  bound = "cube"
)

Arguments

N

number of alpha shapes to sample

n.dependent

boolean, whether the number of points n are dependent on alpha

nconnect

boolean, whether user wants shapes to have one connected component with high probability

nhomology

boolean, whether user wants shapes to preserve homology of underlying manifold with high probability

n.noise

boolean, whether to add noise variable to number of points n for more variety in shapes

afixed

boolean, whether alpha is fixed for all shapes sampled

mu

mean value of truncated normal from which alpha is sampled

sigma

standard deviation of truncated normal distribution from which alpha is sampled

delta

probability of getting disconnected shape or not preserving homology

n

minimum number of points to be sampled for each alpha shape

alpha

chosen fixed alpha; only used if afixed = TRUE

lambda

parameter for adding noise to n; only used if n.noise=TRUE

r

length of radius of circle, side length of square, or outer radius of annulus

rmin

inner radius of annulus

bound

compact manifold to be sampled from; either cube, sphere, or shell

Value

list of alpha shapes of length N


[Package ashapesampler version 1.0.0 Index]