tessellations: Create tessellations

Description Usage Arguments Value

Description

Create tessellations from data

Usage

1
2
3
tessellations(x, y = rep(1, nrow(x)), target = NA, method = 1,
  domain = NULL, outer = Inf, generative = F, dummy_boundary_points = T,
  scatter = NA, multiply_duplicates = T, l2 = 1e-04)

Arguments

x

The data point coordinates

y

The classes of the data points

target

The first to target for polytopic analysis. Targeting only functions with two classes. Default is NA, which will target the first class if there are two classes. Use 0 to target no classes. A target is required to use the analyseSimplexes function on the tessellation object.

method

Not used - should be set to 1.

domain

The domain of the data. If not specified, the min and max values of each column are used. This can be used to calculate the size of the polytope outside the convex hull of the different tessellations (see outer).

outer

The size of the polytope outside the convex hull of the different tessellations. NA will calculate this from the domain.

generative

If TRUE the hypervolumes of the lifted polytopes are calculated. This enables the tessellations to be used as a generative model.

Value

A tessellations object with the following fields:

"tes"

A list containing the class tessellations. This contains the fields:

"tri"

A matrix giving the data points involved in the triangles of the tessellation. These refer to rows in the corresponding class data matrix.

"neighbors"

A list giving the neighbors for each triangle. If positive, these values refer to the triangles in the trianlge matrix. If negative, then the triangle borders the exterior polytope on a given edge.

"area"

The areas of the triangles.

classdata

Matrices giving the data coordinates for the different classes.

x

A matrix giving the coordinates of the complete data set.

y

A vector giving the classes of the complete data set.

dim

The number of dimensions.

chulls

A list of matrices the convex hulls of each tessellation/class data set.

outer

A vector specifying the area lying outside each tessellation.

domain

A matrix specifying the domain.

classes

A vector containing class labels (numbers if all labels are numeric).

densities

A vector specifying the point density estimates of the class data points.

point_mappings

For internal use.

target

The targeted class.

critical_points_map

For internal use.

simplex_models

A list of matrices, one for each class. The nth column gives the linear model associated with the nth polytope in the tessellation for that class.

hypervolumes

The hypervolumes associated with the polytopes of each tessellation.

simplex_cond_probabilities

The probability that a randomly sample from a density comes from a given polytope. The normalized hypervolumes.


mickash/DTFE documentation built on Nov. 16, 2019, 1:49 p.m.