% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AlphaComplex.R
\name{AlphaComplex}
\alias{AlphaComplex}
\title{Construct an Alpha Complex}
\usage{
AlphaComplex(points, epsilon = Inf)
}
\arguments{
\item{points}{A numeric matrix or data.frame with one point per row
(columns are coordinates); must be in "general position" (see
\code{\link{circumsphere}}).}

\item{epsilon}{The alpha-complex scale. A simplex is included once its
alpha value is at most \code{epsilon}. Defaults to \code{Inf}, which
gives the full Delaunay complex (see \code{\link{DelaunayComplex}}).}
}
\value{
A list of class \code{"alpha_complex"} with elements:
\describe{
  \item{simplices}{A list of integer vectors, every included simplex (all
    dimensions, not just the maximal ones - membership in the alpha
    complex is not simply generated by cliques).}
  \item{filtration}{A numeric vector, the alpha value of each simplex in
    \code{simplices}, in the same order.}
}
Pass the result to \code{\link{as_filtration}} for the same
\code{list(simplex=, t=)} format used by \code{\link{build_filtration}}
and every persistence function, or just call
\code{build_filtration(points, method = "Alpha", eps_max = epsilon)}.
}
\description{
Construct an Alpha Complex
}
\examples{
points <- matrix(c(0, 1, 1, 0, 0, 0, 1, 1), ncol = 2)
alpha_complex <- AlphaComplex(points, epsilon = 1)
}
