Simplex
Encyclopedia : S : SI : SIM : Simplex
- For other uses, see Simplex (disambiguation)}}}.
In geometry, a simplex or n-simplex is an n-dimensional analogue of a triangle. Specifically, a simplex is the convex hull of a set of (n + 1) affinely independent points in some Euclidean space of dimension n or higher (i.e., a set of points such that no m-plane contains more than (m + 1) of them; such points are said to be in general position).
For example, a 0-simplex is a point, a 1-simplex is a line segment, a 2-simplex is a triangle, a 3-simplex is a tetrahedron, and a 4-simplex is a pentachoron (in each case with interior).
A regular simplex is a simplex that is also a regular polytope. A regular n-simplex may be constructed from a regular (n − 1)-simplex by connecting a new vertex to all original vertices by the common edge length.
The convex hull of any m of the n points is also a simplex, called an m-face. The 0-faces are called the vertices, the 1-faces are called the edges, the (n − 1)-faces are called the facets, and the sole n-face is the whole n-simplex itself. In general, the number of m-faces is equal to the binomial coefficient C(n + 1, m + 1). Consequently, the number of m-faces of an n-simplex may be found in column (m + 1) of row (n + 1) of Pascal's triangle.
The standard simplex
The standard n-simplex is the subset of Rn+1 given by
- [\Delta^n = \^\mid\Sigma_ = 1 \mbox t_i \ge 0 \mbox i\}]
- e0 = (1, 0, 0, …, 0),
- e1 = (0, 1, 0, …, 0),
- [\vdots]
- en = (0, 0, 0, …, 1).
- [(t_0,\cdots,t_n) \mapsto \Sigma_i t_i v_i]
Geometric properties
The oriented volume of an n-simplex in n-dimensional space with vertices (v0, ..., vn) is
- [ \det \begin v_0-v_1 & v_1-v_2& \dots & v_-v_ \end]
The volume under a standard n-simplex (i.e. between the origin and the simplex) is
- [1 \over (n+1)!]
- [\frac}}]
Topology
Topologically, an n-simplex is equivalent to an n-ball. Every n-simplex is therefore an n-dimensional manifold with boundary.
In algebraic topology, simplices are used as building blocks to construct an interesting class of topological spaces called simplicial complexes. These spaces are built from simplices glued together in a combinatorial fashion. Simplicial complexes are used to define a certain kind of homology called simplicial homology.
A finite set of k-simplexes embedded in an open subset of Rn is called an affine k-chain. The simplexes in a chain need not be unique; they may occur with multiplicity. Rather than using standard set notation to denote an affine chain, it is instead the standard practice to use plus signs to separate each member in the set. If some of the simplexes have the opposite orientation, these are prefixed by a minus sign. If some of the simplexes occur in the set more than once, these are prefixed with an integer count. Thus, an affine chain takes the symbolic form of a sum with integer coefficients.
Note that each face of an n-simplex is an affine n-1-simplex, and thus the boundary of an n-simplex is an affine n-1-chain. Thus, if we denote one positively-oriented affine simplex as
- [\sigma=[v_0,v_1,v_2,...v_n]]
- [\partial\sigma = \sum_^n (-1)^j [v_0,...,v_,v_,...,v_n]].
- [f(\sum_i a_i \sigma_i) = \sum_i a_i f(\sigma_i)]
- [\partial f(\phi) = f (\partial \phi)]
A continuous map [f:\sigma\rightarrow X] to a topological space X is frequently referred to as a singular n-simplex.
Random Sampling
(Also called Simplex Point Picking) There are at least two efficient ways to generate uniform random samples from the unit simplex.
The first method is based on the fact that sampling from the K-dimensional unit simplex is equivalent to sampling from a Dirichlet distribution with parameters α = (α1, ..., αK) all equal to one. The exact procedure would be as follows:
- Generate K unit-exponential distributed random draws x1, ..., xK.
- * This can be done by generating K uniform random draws yi from the open interval (0,1] and setting xi=-ln(yi).
- Set S to be the sum of all the xi.
- The K coordinates t1, ..., tK of the final point on the unit simplex are given by ti=xi/S.
- Set p0 = 0 and pK=1.
- Generate K-1 uniform random draws pi from the open interval (0,1).
- Sort into ascending order the K+1 points p0, ..., pK.
- The K coordinates t1, ..., tK of the final point on the unit simplex are given by ti=pi-pi-1.
The second algorithm also gives us a method of performing a random walk on the simplex, as would be required for uniform Markov chain Monte Carlo sampling over the simplex domain. The basic idea is to first use method two to generate the K-1 points within in the unit interval, and then treat those interior points as if they were undergoing a diffusion process with perfectly reflecting boundary conditions. For each time step, perturb each of the K-1 interior points by some random εi. If any point pi is less than 0, reflect it back into the (0,1) interval by setting pi=|pi|. If any point pi is greater than 1, reflect it back into the (0,1) interval by setting pi=2-pi. Sort the coordinates pi into ascending order, and the K coordinates t1, ..., tK of the final point on the unit simplex are given by ti=pi-pi-1. Again, you must guard against any ti being equal to zero.
See also
- Delaunay triangulation
- glome tesseract polychoron
- polytope
- list of regular polytopes
- simplex algorithm - a method for solving optimisation problems with inequalities.
- simplicial complex
- simplicial homology
- simplicial set
References
- Walter Rudin, Principles of Mathematical Analysis (Third Edition), (1976) McGraw-Hill, New York, ISBN 0-07-054235-X (See chapter 10).
- Andrew S. Tanenbaum, Computer Networks (4th Ed), (2003) Prentice Hall, ISBN 0-13-066102-3 (See 2.5.3).
- Noah A. Smith and Roy W. Tromble (2004). Sampling Uniformly from the Unit Simplex. Technical report, Johns Hopkins University. [link]
- Luc Devroye, Non-Uniform Random Variate Generation. (1986) ISBN 0-38-796305-7. Available online at http://cg.scs.carleton.ca/~luc/rnbookindex.html.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
