Data Geometry 5. Basis Transformation

    The transformation of the basis of the coordinate system is understood as the replacement of one set of base vertices (frames) with another. Compared with the conventional coordinate system on vectors, a change in the coordinate system on a point basis has features associated with the fact that the bases can belong to different spaces.



    In the previous part , we considered the definition of a basis of low dimension in a space of high dimension and showed how to determine the distances between vertices that do not belong to the basis space. When replacing the basis, the requirement to preserve the metric properties of the coordinate system is also key.

    Basic matrices


    Under transformation matrices (transition matrices) is generally understood matrices, which when multiplied by the element coordinates (vertices) in the old basis, its coordinates are obtained by a new one. Based on these matrices, metric tensors are also transformed from one basis to another.

    The basis transformation matrices contain comparative characteristics of the two bases. Among these matrices, invariant matrices are distinguished - their values ​​do not depend on the choice of basis. For example, the distance matrix between vertices is invariant.

    Direct transition matrices


    The set of initial base vertices is denoted as $ a $ (old basis), new set as $ p $(new basis). To transform the coordinates, a transition matrix must be specified - a description of the coordinates of the vertices of the new basis in the old. Such coordinates can be either the di-coordinates of the vertices or the bi-coordinates. The transition matrix in di-coordinates is denoted as$ Dm_ {pa} $. The row of the matrix is ​​the coordinates of the top of the new basis$ p $ in the old $ a $, respectively, the column is the di-coordinates of the top of the old basis relative to the new.

    The transition matrix should be square, therefore, the coordinates of the vertices alone are not enough - their number is less than the number of coordinate components (due to the presence of a scalar component in the coordinates). Therefore, it is necessary to add the di-coordinates of the normal vector [0; 1, 1, ... 1]. Then the transition matrix in di-coordinates becomes similar in form to a major gramian. Call the matrix$ Dm_ {pa} $ remote coordinate transformation tensor (DTP):

    $ Dm_ {pa} = \ begin {pmatrix} 0 & 1_a \\ 1_p & D_ {pa} \ end {pmatrix} \ quad (5.1.1) $

    The distance transformation tensor is an invariant — its values ​​are independent of the basis. In the reverse transition (from$ p $ to $ a $) the values ​​of the given matrix are simply transposed (rows and columns are interchanged).

    Since accidents are di-coordinates, multiplying them by the Laplacian (LMT), we can obtain bi-coordinates$ Bm_ {p} ^ {a} $. The structure of the bi-coordinates of the transition matrix:

    $ Bm_ {p} ^ {a} = \ begin {pmatrix} 1 & 0_a \\ w_p & B_ {p} ^ {a} \ end {pmatrix} \ quad (5.1.2) $

    The first row of this matrix is ​​the bi-coordinates of the normal: $ [1;  0, 0, ...] $.
    In contrast to the accident, the values ​​of the bi-coordinates of the transition matrix depend on for what basis they are obtained - for the old or new. The choice of basis determines the LMT matrix. For definiteness, the bi-coordinate of the transition in the basis$ a $ denote as $ Ba_p {} ^ a $, and in the basis $ p $ as $ Bp_a {} ^ p $. Then the following identities hold. For the original basis:

    $ Ba_p {} ^ a = Dm_ {pa} \ Lm ^ {aa} $, $ Dm_ {pa} = Ba_p {} ^ a \ Gm_ {aa} \ quad (5.2.1) $

    and for the new:

    $ Bp_a {} ^ p = Dm_ {ap} \ Lm ^ {pp} $, $ Dm_ {ap} = Bp_a {} ^ p \ Gm_ {pp} \ quad (5.2.2) $

    Here $ Lm ^ {aa} $ and $ Gm_ {aa} $- Laplacian and Gramian of the initial basis. Respectively$ Lm ^ {pp} $ and $ Gm_ {pp} $- metric tensors of a new basis.

    When passing from one basis to another, it is necessary to determine the metric tensors of the new basis if transformation matrices are given.

    Inverse transition matrices


    Transition Matrices $ Dm_ {pa} $ and $ Ba_p {} ^ a $ are invertible under the condition that the transition matrix determinant is nonzero:

    $ Det (Dm_ {pa}) \ ne 0 $ or $ Det (Ba_p {} ^ a) \ ne 0 $

    The zero determinant of the transformation matrix means the orthogonality of the bases. In the orthogonal basis, it is impossible to express the projection metric. We consider the bases nonorthogonal. Then the inverse transition matrices are expressed through the straight lines as follows:

    $ Lt ^ {ap} = (Dm_ {pa}) ^ {- 1} = (Ba_p {} ^ a \ Gm_ {aa}) ^ {- 1} = Lm ^ {aa} \ Ba_p {} ^ a \ quad (5.3.1) $

    $ Ba_a {} ^ p = (Ba_p {} ^ a) ^ {- 1} = (Dm_ {pa} \ Lm ^ {aa}) ^ {- 1} = Gm_ {aa} \ Lt ^ {ap} \ quad (5.3.2) $

    Matrix $ Ba_a {} ^ p $ - represents the bi-coordinates of the vertices of the old basis $ a $ relative to the peaks of the new $ p $. That is, inverting bi-coordinates gives mutual bi-coordinates.

    Matrix$ Lt ^ {ap} $Is the Laplace transform of the basis transformation tensor (LTP). Its structure is similar to the structure of the Laplacian (LMT):

    $ Lt ^ {ap} = \ begin {pmatrix} g (a, p) & sa ^ {p} \\ sp ^ {a} & L ^ {ap} \ end {pmatrix} \ quad (5.4) $

    Here is the major minor $ L ^ {ap} $Is a symmetrical Laplacian. In the border, the barycentric coordinates of the back projections of the orthocenters of two bases (simplexes). The orthocenter of the initial basis is expressed in the barycentric coordinates of the new -$ sa ^ {p} $, and the orthocenter of the new in the coordinates of the original - $ sp ^ {a} $.
    What is meant by “back projections” will be explained below.

    In the corner of the Laplace tensor is a scalar$ g (a, p) $. Its value reflects the scalar product of two bases - the new and the old. To reveal its meaning, we consider two situations - 1) the bases belong to the same space and 2) the bases belong to different spaces.

    Scalar product of bases of one space


    In general space, the scalar product of bases is expressed in terms of the norms of orthocenters ($ rs_a $ and $ rs_p $) and the distance between the orthocenters ($ q_ {ap} = | Oa, Op | ^ 2 $):

    $ g (a, p) = (rs_a + rs_p - q_ {ap}) / 2 \ quad (5.5) $

    This formula is similar to the expression for the scalar product of pairs with a common vertex (3.8) . Therefore, we can consider relation (5.5) as the definition of the scalar product of orthocenters.

    The figure shows a geometric interpretation of the scalar product of orthocenters (circles). On the left is the definition through the scalar product of adjacent pairs$ (R, Oa) $ and $ (R, Op) $. If the circles intersect, then they have a common element$ R $- adjacency element of pairs.

    The scalar product of elements can be determined through their mutual degrees (shown in the figure to the right). A geometric definition of the degree of a point is given in the 2nd part. According to (2.9), the degree of the point$ m_p $ relative to an element is expressed through the distance from the point to the element $ r_p $ and the rate of the element $ rs $:

    $ m_p = r_p - rs \ quad (2.9) $

    You can generalize this definition if you use another element instead of a point. Then the mutual degree of the two elements$ a $ and $ p $ is the following scalar quantity $ m (a, p) $:

    $ m (a, p) = q_ {ap} - rs_a - rs_p \ quad (5.6) $

    This formula is known as Darboux's product . The right figure shows the construction of points, the distance between which is equal to the mutual degree of the elements:

    $ m (a, p) = | Ta, Sp |  = | Tp, Sa | $

    According to its properties, the mutual degree of the elements generalizes the properties of the degree of a point, that is, determines their relative position. If the elements are outside each other, then their mutual degree is positive; if they intersect, it is negative. By intersection, we mean a situation in which touch points$ Ta $ (or $ Tp $) are inside the element $ p $ (or $ a $respectively) (in the figure, the mutual degree of the elements is positive).

    Then the scalar product (5.5) is the mutual half-degree of the elements (and vice versa). Recall (2.10) that a semi-degree is a power divided by (-2):

    $ g (a, p) = -m (a, p) / 2 \ quad (5.5 ') $

    If the centers of the elements coincide ($ q_ {ap} = 0 $), then their scalar product will be equal to their average norm:

    $ g (a, p, q_ {ap} = 0) = (rs_a + rs_p) / 2 \ quad (5.7) $

    Scalar product of bases of different spaces


    If the bases belong to different spaces, then the geometric interpretation of their scalar product $ g (a, p) $complicated. First, we give algebraic identities. They are similar to those for the components of the Laplace tensor given in the first part .

    The scalar product of bases can be expressed in terms of the ratio of the determinants of the distance transition matrix and its main minor (see 5.1.1):

    $ g (a, p) = det (Dm_ {pa}) / det (D_ {pa}) \ quad (5.8.1) $

    The relationship of the mutual norm of bases and barycentric coordinates of the back projections of their orthocenters:

    $ g (a, p) 1_a = sa ^ {p} D_ {pa} \ quad (5.8.3) $ - for the vertices of the basis $ a $.

    $ g (a, p) 1_p = D_ {pa} sp ^ {a} \ quad (5.8.2) $ - for the vertices of the basis $ p $.

    Let’s figure out what the inverse projection of a point is. Let's say we have a point$ Tp $belonging to the basis $ p $. Then its inverse projection onto the basis$ a $ there will be such a point $ Tp ^ {(a)} $that the perpendicular dropped from it onto the basis $ p $intersects with it at the starting point $ Tp $.

    In the figure, the projection of the point$ Op $ to space $ a $ is the point $ Op '$, and the back projection of the point $ Oa $ to space $ p $ - point $ Oa '$. Points$ Oa $ and $ Op $ Are orthocenters of bases $ a $ and $ p $respectively.

    The notion of back projection also applies to element norms. The norm in the rear projection becomes larger than the original (in contrast to the direct projection). Distance shown$ rs_a = | Oa, A | $ Is the norm of the orthocenter of the basis $ a $. Inverse projection onto the basis$ p $ there will be a distance:
    $ rs ^ {(p)} _ {a} = | Oa ', A | = rs_a + | Oa, Oa' | $.
    Accordingly, the inverse projection of the basis norm$ p $$ rs_p = | Op, P | $ to basis $ a $ there will be a distance
    $ rs ^ {(a)} _ {p} = | Op ', P | = rs_p + | Op, Op' | $.
    Denoting the distance between the back projections of the centers as$ d '_ {ap} = | Oa', Op '| $, we obtain the following expression for the scalar product of bases of different spaces:

    $ g (a, p) = (rs ^ {(p)} _ {a} + rs ^ {(a)} _ p - d '_ {ap}) / 2 \ quad (5.9) $

    We see that in form it coincides with the mutual norm of the bases of one space (5.5), but instead of distances, their inverse projections onto the mutual basis are used. If the bases belong to one space, then the angle between the spaces becomes zero, and formula (5.9) goes over into (5.5).

    All the above formulas are also applicable to graph space. There are no described spheres (basis) in the graph, but there is connectivity. Then the scalar product of the bases of the graph should reflect their mutual connectivity.

    Calculation of a new basis


    Here we also consider two situations: 1) the new and old bases belong to the same space and 2) belong to different spaces. The first case, as a rule, refers to ordinary geometric space (when changing the basis, its space rarely changes here), the second refers to the space of the graph.

    It is possible to determine whether an element (vertex) belongs to a basis space by its norm in a given space. If equal to zero, then the element belongs to space.

    Single basis space


    To obtain a new basis gramian $ Gm_ {pp} $ it is necessary to multiply the di-coordinates of the elements of the new basis $ Dm_ {pa} $ to bi-coordinates $ Ba_a {} ^ p $. The resulting matrix will be the matrix of scalar products in the new basis$ Gm '_ {pp} $(see 4.4.2 in the previous part ). Thus, if the basis spaces coincide, then the norm matrix of the vertices of the new basis relative to the old one is the Gramian of the new basis:

    $ Gm '_ {pp} = Dm_ {ap} \ Ba_p {} ^ a = Dm_ {pa} \ Lm ^ {aa} \ Dm_ {ap} \ quad (5.10.1) $

    We marked this gramian with a stroke to remember the condition of the general basis space. The Laplacian of the new basis (LMT) can be obtained by reversing the gramian (DMT):

    $ Lm '^ {pp} = (Dm_ {ap} \ Ba_p {} ^ a) ^ {- 1} = Ba_a {} ^ p \ Lt ^ {pa} \ quad (5.10.2) $

    The coordinates of the element in the new basis can be expressed in terms of the coordinates in the old and transition matrices. Di-coordinates$ dm_ {p} $:

    $ dm_ {p} = Dm_ {pa} \ bm ^ a = Ba_p {} ^ a \ dm_a \ quad (5.11.1) $

    Bi-coordinates of the element in the new basis $ bm ^ p $:

    $ bm ^ {p} = Ba_a {} ^ p bm ^ a = Lt ^ {pa} dm_a \ quad (5.11.2) $

    All the above expressions are similar to the coordinate change formulas in ordinary (vector) coordinate systems. Within a common space, using a point basis is similar to using a vector basis.

    Baseline conversion example
    KDPV shows the main basis $ a $ из 3-х вершин (A, B, C) и новый базис $ p $, образованный вершинами (P, Q, R). Значения ДМТ основного базиса есть в первой статье:
    \begin{array}{c | c c c c}
    Gm_{aa} & * & A & B & C \\
    \hline
    * & 0 & 1 & 1 & 1 \\
    A & 1 & 0 & -4.5 & -8 \\
    B & 1 & -4.5 & 0 & -12.5 \\
    C & 1 & -8 & -12.5 & 0 \\
    \end{array}
    Звездочкой обозначена скалярная компонента. Значение лапласиана (ЛМТ) можно получить обращением грамиана (ДМТ).

    Дистанционную матрицу перехода считаем заданной. Ее вид:
    \begin{array}{c | c c c c}
    Dm_{pa} & * & A & B & C \\
    \hline
    * & 0 & 1 & 1 & 1 \\
    P & 1 & -1.0 & -2.5 & -13.0 \\
    Q & 1 & -6.5 & -2.0 & -6.5 \\
    R & 1 & -12.5 & -2.0 & -20.5 \\
    \end{array}

    Значения би-координат матрицы перехода получаем по формуле (5.2.1):
    \begin{array}{c | c c c c}
    Ba_p{}^a & * & A & B & C \\
    \hline
    * & 1 & 0 & 0 & 0 \\
    P & -1.5 & 0.91(6) & 0.(3) & -0.25 \\
    Q & 2.0 & -0.5 & 1.0 & 0.50 \\
    R & -5.0 & -0.(6) & 1.(6) & 0.0 \\
    \end{array}
    Скалярной компонентой (значения первого столбца) би-координат являются орбитали. Сумма барицентрических компонент равна 1.

    Лапласовский тензор преобразования (5.3.1):
    \begin{array}{c | c c c c}
    Lt^{ap} & * & P & Q & R \\
    \hline
    * & 2.15 & 0.30 & 1.15 & -0.45 \\
    A & 0.058(3) & 0.11(6) & -0.0(6) & -0.05 \\
    B & 0.9(6) & -0.0(6) & -0.0(3) & 0.10 \\
    C & -0.025 & -0.05 & 0.10 & -0.05 \\
    \end{array}
    Вектор $ [0.30, 1.15, -0.45] $ — это барицентрические координаты ортоцентра старого базиса (симплекса ABC) относительно вершин нового (PQR). Соответственно, вектор $[0.058(3), 0.9(6), -0.025]$ — наоборот, барицентрические координаты ортоцентра симплекса PQR относительно вершин старого базиса.

    Используя (5.10.1), получаем грамиан нового базиса:
    \begin{array}{c | c c c c}
    Gm'_{pp} & * & P & Q & R \\
    \hline
    * & 0 & 1 & 1 & 1 \\
    P & 1 & 0 & -6.5 & -8.5 \\
    Q & 1 & -6.5 & 0 & -4.0 \\
    R & 1 & -8.5 & -4.0 & 0 \\
    \end{array}


    Базисы в разных пространствах


    If the bases are in different spaces, then the formula (5.10.1) will give incorrect values ​​of half distances between the vertices of the new basis. In the previous part, it was shown that in the general case, to find the correct distances between the vertices, it is necessary to add a fundamental matrix to the norm matrix$F_{pp}$ (4.5):

    $G_{pp} = (G'_{pp} + F_{pp}) \quad(4.5, 5.12)$

    Therefore, when transforming a basis to a basis from another space, it is necessary, along with the transition matrices, to specify the fundamental matrix of the new basis (relative to the original).

    To define a fundamental matrix, it is useful to recall its geometric meaning (see 4.6.1 ). The element of the fundamental matrix is ​​a scalar product of normals directed to the vertices from their projections onto the basis space. In the particular (but practically important) case of a common superspace, the element of the fundamental matrix is ​​calculated as the product of the distances from the given elements to the basis space.

    Scalar Product of Back Projections


    In the graph space, the values ​​of the fundamental matrix can be obtained through the adjacency matrix between the old and the new basis $C^{pa}$. The elements of this matrix are the weight of the bonds between the vertices of two bases. If the matrix is ​​known and invertible, then we can obtain the inverse adjacency matrix:

    $H_{ap} = (C^{pa})^{-1} \quad(5.13.1)$

    The resulting matrix (as well as the adjacency matrix) is an invariant - its values ​​do not depend on the choice of basis. Values ​​of matrix elements$H_{ap}$reflect the scalar product of the back projections between the vertices of two bases. The figure shows an explanatory diagram.

    Here point A belongs to the basis$a$, and the point P to the basis$p$. Dashes indicate the inverse projections of points onto an adjacent basis. Then the value of the matrix element is a scalar product of vectors$\vec{AA'}$ and $\vec{P'P}$:

    $H_{AP} = \vec{AA'} \cdot \vec{P'P} \quad(5.13.2)$

    This relation can be expressed in terms of the distance from the vertices to the hyperplane of intersection of spaces (in the figure - point O ) and the angle between the spaces$\alpha$:

    $H_{AP} = |OA| |OP| \sin(\alpha)^2/\cos(\alpha) \quad(5.13.2')$

    It can be seen from formula (5.13.2 ') that if the bases are orthogonal $cos(\alpha)=0$, then the elements of the scalar product go to infinity.

    Final basis transformation formulas


    It is convenient to reduce the dimension of the matrix of scalar products of projections $H_{ap}$to the dimension of the remaining transition matrices, skirting it with zeros. Then the fundamental matrix of the basis$p$ defined as

    $F_{pp} = Ba_p{}^a \ H_{ap} \quad(5.14)$

    Combining everything together, we obtain the final expression for the Gramian of the new basis $p$:

    $Gm_{pp} = Gm'_{pp} + F_{pp} = Ba_p{}^a \ T_{ap}=Dm_{pa} Lm^{aa} Dm_{ap} + Dm_{pa} Lm^{aa} H_{ap} \quad(5.15.1)$

    The initial basis is expressed symmetrically for given transformation matrices:

    $Gm_{aa} = Gm'_{aa} + F_{aa} = T_{pa} Bp_a{}^p=Dm_{ap} Lm^{pp} Dm_{pa} + H_{ap} Lm^{pp} Dm_{pa} \quad(5.15.2)$

    Here $Ba_p{}^a$ and $Bp_a{}^p$ - bi-coordinates of the transition matrices (5.2.1) and (5.2.2). $T_{pa}$ - total distance conversion matrix:

    $T_{pa} = Dm_{pa} + H_{pa} \quad(5.16)$

    This matrix is ​​an invariant, consists of two parts - the remote transformation tensor $Dm_{pa}$ and additives related to the non-coplanarity of basis spaces - matrixes of scalar products of projections $H_{pa}$.

    The Laplace basis tensor is obtained by the inverse of DMT (5.15). The problem of determining the connection of bases is solved.



    To summarize. The heavy formulaic part of the series as a whole is complete. The basic concepts and identities are given. Point bases are a useful and powerful tool for various applications. In the final article, we consider the basis of the simplest structure - in the form of a star.

    Also popular now: