mirror of https://github.com/CGAL/cgal
PCA: documentation (intro + centroid)
This commit is contained in:
parent
c0f31f8cc8
commit
1ec93cf58b
|
|
@ -1,8 +1,7 @@
|
||||||
|
|
||||||
\begin{ccPkgDescription}{Principal Component Analysis\label{Pkg:PrincipalComponentAnalysisD}}
|
\begin{ccPkgDescription}{Principal Component Analysis\label{Pkg:PrincipalComponentAnalysisD}}
|
||||||
\ccPkgHowToCiteCgal{cgal:ap-pcad-08}
|
\ccPkgHowToCiteCgal{cgal:ap-pcad-08}
|
||||||
\ccPkgSummary{This package provides functions to compute global information on the shape of a set of 2D or 3D objects. It provides the computation of axis-aligned bounding boxes for point sets, and barycenters
|
\ccPkgSummary{This package provides functions to compute global information on the shape of a set of 2D or 3D objects. It provides the computation of axis-aligned bounding boxes for sets of bounded objects, and barycenters of weighted point sets. In addition, it provides computation of centroids (center of mass) and linear least squares fitting for point sets as well as for sets of other bounded objects in 2D and 3D. More specifically, these objects include segments, circles, disks, rectangles, triangles, cuboids, tetrahedra, spheres and balls. The common interface to these functions takes an iterator range of objects.}
|
||||||
of weighted point sets. In addition, it provides computation of centroids (center of mass) and linear least squares fitting for point sets as well as for other (bounded) objects in 2D and 3D. More specifically, these objects include segments, circles, disks, rectangles, triangles, cuboids, tetrahedra, spheres and balls. The common interface to these functions takes an iterator range of objects.}
|
|
||||||
|
|
||||||
%\ccPkgDependsOn{}
|
%\ccPkgDependsOn{}
|
||||||
\ccPkgIntroducedInCGAL{3.2}
|
\ccPkgIntroducedInCGAL{3.2}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
This \cgal\ package provides functions to compute global information on the shape of a set of 2D or 3D objects such as points. It provides the computation of axis-aligned bounding boxes for point sets, and barycenters of weighted point sets. The set of kernel primitive elements are assumed to be stored into an iterator range of a container.\\
|
This package provides functions to analyze sets of objects in 2D and 3D. It provides the computation of axis-aligned bounding boxes, centers of mass and principal component analysis for all bounded objects, as well as barycenters for sets of weighted points.\\
|
||||||
|
|
||||||
|
|
||||||
In addition, it computes centroids as well as linear least squares fitting for sets of points, circles, rectangles, segments and triangles in 2D and in points, segments, triangles, cuboids, spheres and tetrahedra in 3D. For each object type in 2D and 3D, it allows the user to specify the dimension of the object fitted. For example, it is possible to fit a set of balls by providing an iterator range of spheres and specifying dimension 3. It is also possible to fit only the edges of a set of tetrahedra by specifying dimension 1, etc.
|
|
||||||
\section{Definitions}
|
\section{Definitions}
|
||||||
|
|
||||||
A \emph{bounding box} for a set of objects is a cuboid that completely contains the set. An \emph{axis-aligned bounding box} is a bounding box aligned with the axes of the coordinate system.\\
|
A \emph{bounding box} for a set of objects is a cuboid that contains the set. An \emph{axis-aligned bounding box} is a an expression of the maximum extents of all objects from the set within their coordinate system, i.e., a bounding box aligned with the axes of the coordinate system. Axis-aligned bounding boxes are frequently used in geometric algorithms as an indication of the general position of a data set, for either display, first-approximation spatial query, or spatial indexing purposes. \\
|
||||||
|
|
||||||
A \emph{centroid} is defined as average of position. A \emph{barycenter} of weighted point sets is defined as weighted
|
A center of mass \emph{centroid} is defined as average of position. A \emph{barycenter} of weighted point sets is defined as weighted
|
||||||
average of position. When all weights are equal the barycenter coincides with the centroid.\\
|
average of position. When all weights are equal the barycenter coincides with the centroid.\\
|
||||||
|
Centers of mass are used to summarize data sets for approximation.
|
||||||
|
|
||||||
|
|
||||||
Given a point set, \emph{linear least squares fitting} amounts to find the linear sub-space which minimizes the sum of squared distances from the points to their projection onto this linear sub-space. This problem is equivalent to search for the linear sub-space which maximizes the variance of projected points, the latter being obtained by eigen decomposition of the covariance matrix of the point set. Eigenvectors corresponding to large eigenvalues are the
|
Given a point set, \emph{linear least squares fitting} amounts to find the linear sub-space which minimizes the sum of squared distances from the points to their projection onto this linear sub-space. This problem is equivalent to search for the linear sub-space which maximizes the variance of projected points, the latter being obtained by eigen decomposition of the covariance matrix of the point set. Eigenvectors corresponding to large eigenvalues are the
|
||||||
directions in which the data has strong component, or equivalently large variance. If eigenvalues are the same there is no preferable sub-space.\\
|
directions in which the data has strong component, or equivalently large variance. If eigenvalues are the same there is no preferable sub-space.\\
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
% | Reference manual page: centroid.tex
|
% | Reference manual page: centroid.tex
|
||||||
% +------------------------------------------------------------------------+
|
% +------------------------------------------------------------------------+
|
||||||
% |
|
% |
|
||||||
% | March 2005 Pierre Alliez and Sylvain Pion and Ankit Gupta
|
% | November 2008 Pierre Alliez and Sylvain Pion and Ankit Gupta
|
||||||
% | Package: Principal Component Analysis
|
% | Package: Principal Component Analysis
|
||||||
% |
|
% |
|
||||||
% +------------------------------------------------------------------------+
|
% +------------------------------------------------------------------------+
|
||||||
|
|
@ -12,8 +12,7 @@
|
||||||
|
|
||||||
\ccDefinition
|
\ccDefinition
|
||||||
|
|
||||||
The function \ccRefName\ computes the centroid (center of mass) of a set
|
The function \ccRefName\ computes the uniform center of mass of a set of 2D or 3D bounded objects. In 2D these objects include points, segments, triangles, iso rectangles, circles and disks. In 3D these objects include points, segments, triangles, iso cuboids, spheres, balls and tetrahedra.
|
||||||
of 2D or 3D objects. These include points, segments, triangles, rectangles and circles in 2D and in addition, cuboids, spheres and tetrahedra in 3D.
|
|
||||||
|
|
||||||
\ccInclude{CGAL/centroid.h}
|
\ccInclude{CGAL/centroid.h}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue