Determining the Principal Directions of a Point Set in the Plane and in Space
Authors:
Open Access
- 1 October 2026
- journal article
- Published by FSFEI HE Don State Technical University in COMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES
- Vol. 10 (3) , 22-30
Abstract
Introduction . The problem of determining the principal directions of a point set in the plane or in space is solved numerically. The task is to determine the orientation of an extremal line passing through the centroid of the set and minimizing or maximizing the functional defined as the sum of the squared distances from all points of the set to the line. This problem is relevant as an auxiliary component of many tasks involving intelligent systems. Materials and Methods . For a point set in the plane, the principal-direction problem is solved explicitly for two polar angles specifying the directions of the extremal lines corresponding to the maximum and minimum of the error functional. If the denominator in the resulting formula degenerates because the points are arranged symmetrically, changing one coordinate of a single point by 10⁻¹⁴ is sufficient to break the symmetry, make the formula applicable, and obtain a doubleprecision result. For a point set in three-dimensional space, the problem is reduced to a numerical iterative algorithm based on gradient descent with respect to the orientation angles of a line passing through the centroid of the set. A minimal compact C++ implementation for determining the principal directions in the three-dimensional case is proposed. Results . For a spatial point set, an explicit expression is obtained for the error functional and for the components of its gradient in the azimuthal and polar directions of a spherical coordinate system. An empirical formula for the gradient step is obtained as a function of the number of iterations, enabling a double-precision numerical solution with a relatively small number of iterations. It is shown that 100 iterations are sufficient to determine the extremal angles even when the initial orientation differs from the final orientation by π/2 for each angle. Discussion . The principal-direction problems for point sets in the plane and in space are solved numerically with double precision. Two test examples confirm double-precision accuracy for cases with the largest deviation between the initial and final line orientations. Both the explicit formulas for the two-dimensional problem and the formulas of the threedimensional iterative algorithm involve only coefficients represented by homogeneous second-order sums that depend on the point coordinates. There are three such coefficients in the two-dimensional case and six in the three-dimensional case. Conclusions . Despite its algorithmic simplicity, the gradient descent method yields well-defined iterative formulas for any initial and intermediate orientation of a line passing through the centroid of a point set in space. The explicit formulas obtained for the principal directions of a point set in the plane and the gradient-descent formulas for the three-dimensional case can be used in analysis problems involving intelligent systems and neural networks.Keywords
This publication has 10 references indexed in Scilit:
- Hybrid Modelling of Extreme Storm Processes and Navigation Risks in the Azov Sea Based on Three-Dimensional Hydrodynamics and Machine Learning MethodsCOMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES, 2025
- Automatic Depth Value Recognition on Pilot Charts Using Deep Learning MethodsCOMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES, 2025
- Application of Neural Networks for Solving Nonlinear Boundary Problems for Complex-Shaped DomainsCOMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES, 2025
- Models of Cardiac Artery Segmentation From Coronary Angiographic ImagesВестник Пермского университета. Математика. Механика. Информатика, 2025
- Mathematical Methods Application in an Artificial Neural Network to Recognize "Fake" Emotions in the VoiceВестник Пермского университета. Математика. Механика. Информатика, 2024
- A Net Virus Spreading in a Local Computer Network Modeling With Using Percolation Theory MethodsВестник Пермского университета. Математика. Механика. Информатика, 2024
- Original article Machine learning in the analysis of the electromagnetic field influence on the rate of oilfield equipment’s corrosion and salt depositionCOMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES, 2023
- Artificial Intelligence for Data Transfer Control in Tactical Command Element Using Multilayer and Multithreaded Geospatial Enviroment EncryptionВестник Пермского университета. Математика. Механика. Информатика, 2023
- About Using of Autoencoders for Anomaly Detection in Cyber-physical SystemsВестник Пермского университета. Математика. Механика. Информатика, 2022
- Application of the background subtraction method and Viola-Jones algorithm for increasing the speed of face tracking in the personality recognition systemCOMPUTATIONAL MATHEMATICS AND INFORMATION TECHNOLOGIES, 2018