User:AboutFace 22/sandbox

From Wikipedia, the free encyclopedia

3.1. Spherical Harmonics

In order to be able to represent a function on a sphere in a rotation invariant manner, we utilize the mathematical notion of spherical harmonics to describe the way that rotations act on a spherical function. The theory of spherical harmonics says that any smooth enough spherical function can be decomposed as the sum of its harmonics:

(1)

where degree and order and

(2)

Normalization factor for trigonometric functions does not depend on index and is:

Thus to normalize a trigonometric function the factor will be the inverse of this:

for instance[1]

Normalization factor in formula [2] is defined below and

(3)

and

(4)

Fourier transform component:

(5)

Legendre transform:

(6)

and discrete form of Gauss-Legendre transform:

(7)

Angles and in formula [7] above are abscissas and weights for Gauss-Legendre Integration given elsewhere, e.g in Ref {5}

ALTERNATIVE EXPRESSION OF COEFFICIENTS:

(8)

Assuming

(9)

we can rewrite the expression (8) as

(10)
  • FOURIER SERIES Ref {6}

(10.1)

(10.2)

DISCRETE FOURIER TRANSFORM

Forward Transform:

(11)

Inverse Transform:

(12)

or assuming that we have calculated coefficients

in [5], the function can be restored as:

[2]

where and are real and imaginary components correspondingly to the Fourier transform of the periodic function .

WAVELENGTH AND OTHERS Ref {8}

Wavelength of in meridional direction Does not depend on

It is possible to show that to resolve an object with a certain angular diameter on the retina the system should have Spherical Harmonics whose half of the wavelength in the meridional direction (ALP) and parallel direction (Trigonometric functions) be roughly equal to the angular diameter of the object. The above formula shows that for a visual recognition device with maximum acuity to match the maximum human resolution of 1.0 arc min[3] should have = 21,600. This amount of index will give us the whole period. We need to match the half-period to the the angular size of the outside object. That will give us = 10,800. Since this small object resolution might be considered at the end of the capacity of the system, we may divide this number by at least 5. This will give us the final value of = 2,160. Computing Associated Legendre Polynomials with such high degrees is possible with the existing normalized recurrence formulas. With the distance from the North Pole of 2-sphere large, the approximations with trigonometric functions and will work perfectly.

There are linearly independent eigenfunctions per

vanishes on meridians and parallels; is the same but rotated around axis Those are the roots of and and .

Also:

PERIODICITY OF TRIGONOMETRIC FUNCTIONS

(12.1)

INTERVAL CHANGE

An integral over [a, b] must be changed into an integral over [−1, 1] before applying the Gaussian quadrature rule. This change of interval can be done in the following way:

(13)

Applying the Gaussian quadrature rule then results in the following approximation:

(14)

I use this formula to integrate along the meridians. and are abscissas and weights given in Ref {5}.

  • SUBSPACES AND ROTATIONS Ref {7}

The key property of this decomposition is that if we restrict to some frequency , and define the subspace of functions:

(15)

then:

  • is a Representation For the Rotation Group: For any function and any rotation R, we have R()

This can also be expressed in the following manner: if is the projection onto the subspace then commutes with rotations:

(16)
  • is Irreducible cannot be further decomposed as a direct sum = where and are also (nontrivial) representation of rotation group.

The first property presents a way for decomposing spherical functions into rotation in variant components, while the second property guarantees that, in a linear sense, this decomposition is optimal

3.2 Rotation Invariant Descriptors

Using the properties of spherical harmonics and the observation that rotation of the spherical harmonics does not change its -norm we represents the energies of the spherical function f(θ,φ) as:

(17)

where are frequency components of :

(18)

Parseval's theorem for Spherical Harmonics expansion gives Ref {8}:

The term in square brackets gives a power spectrum of as a function of reciprocal wavelength or wavenumber ( is sometimes call the spherical wavenumber).

This representation has the property that it is independent of the orientation of the spherical function and therefore constitute a computable invariant. To see this we let R be any rotation and we have:

(19)
=
=
=

The following is from the Wikipedia article on Spherical Harmonics (with my comments as well):

While computing invariants it may be necessary to take into account the contribution of expansion coefficients with negative m index). This contribution is not linear and cannot simply be discounted. On the other hand you may consider dropping some subset of indices m across the whole range of , for instance you can drop even or odd m's or to drop two or three in a row and then use the next one. The only rule must apply: it has to be uniform for negative and positive m's.

(20)

You can use Stirling approximation to compute large factorials or you can reduce the fraction by noticing that the fraction with factorials will be equal to

(21)
  • POWER SPECTRUM IN SIGNAL PROCESSING

The total power of a function is defined in the signal processing literature as the integral of the function squared, divided by the area of its domain. Using the orthonormality properties of the real unit-power spherical harmonic functions, it is straightforward to verify that the total power of a function defined on the unit sphere is related to its spectral coefficients by a generalization of Parseval's theorem:

(22)

where

(23)

is defined as the angular power spectrum. In a similar manner, one can define the cross-power of two functions as

(24)

where

(25)

As one can see the previous paragraph is directly related to our two perspectives. Those "total powers of a function" split in ribbons in the vector space with the same degree are in fact the invariants we must use.


  • NORMALIZATION (LEGENDRE POLYNOMIALS FIRST):

(26)
  • NORMALIZATION (ASSOCIATED LEGENDRE POLYNOMIALS):

I have a few questions concerning orthonormality of Associated Legendre Polynomials (ALP). I want to stress the word orthonormality as opposed to simply orthogonality. The reason for that is computational. It is a well known fact that when ALP with large indices & are computed the functional values grow in magnitude to the point that the exponents overflow. Double precision is required and in some cases even quadruple precision is needed. The normalization diminishes the absolute values of the functions considerably but not universally. I want to make sure that I understand normalization correctly. Wikipedia article on ALP gives two formulas.

(27)

Thus the normalization factor here will be:

(28)

Where δk, ℓ is the Kronecker delta.

I call it normalization in respect to

For my task it is more important to normalize in respect to . It is given by this formula:

(29)

The normalization factor for each subspace with a given but differing should be this:

(30)
  • NORMALIZATION IN ACOUSTICS:

(31)
  • NORMALIZATION IN QUANTUM MECHANICS:

(31.1)

which are orthonormal:

(32)

The in the formula [31] signifies normlalization for trigonometric part

NORMALIZATION PER keisan.casio CALCULATOR [4]

(33)

(34)
  • NORMALIZED ASSOCIATED LEGENDRE POLYNOMIALS WITH NEGATIVE M

(35)

Multiplying both sides by normalization coefficients:

(36)

we get:

(37)
  • CONVENIENT FORMULAS:

(38)

(39)

|||****************************************************|||

(40)

Taking into account that 0! = 1 the normalization factors in both and should be

and

(41)

Multiplying both sides of the equation [40] we get:

(42)

where polynomials are normalized.

|||******************************************************|||

The next formula ([43]) is easily derived from [40] by saying :

(43)

Likewise multiplying the expression [40] by it's appropriate normalization coefficients [38] and:

(44)

we get:

(45)

[45] is implemented as highOrder_ALP_LeqM_Norm. Matches Belousov's values.

|||******************************************************|||

(46)

where

or

(47)

depending on being even or odd

  • RECURRENCES:

|||******************************************************|||

MOVING UP ALONG INCREASING with (non-associated Legendre polynomials)

(48)

To normalize [48] we need to multiply both sides with three normalization coefficients:

(49)

The result is <verified 11/26/16>:

(50)

|||******************************************************|||

MOVING ALONG INCREASING INDEXES TO THE RIGHT (INCREASING INDEX AND CONSTANT INDEX )

Take a Wikipedia formula (second in the column) [5]

(51)

is modified by saying (rechecked 11/20/16):

The result is (Moving along indices M to the right, in the direction of increasing index M):

(52)

Formula [52] checked again on 12/09/17

Multiplying both sides of the equation [52] by normalization factors

(53)

and simplifying we get:

(54)

or simplifying again:

(55)

where is a normalized Associated Legendre Polynomial (normalized in respect to )

NORMALIZATION OF EXPRESSION [52] IN RESPECT TO :

(56)

(57)

where is an Associated Legendre Polynomial degree and order normalized in respect to

|||******************************************************|||

MOVING ALONG INDEXES TO THE LEFT (IN THE DIRECTION OF DECREASING INDEXES ) <rechecked 11/20/16>:

Again taking as a source the Wikipedia formula (second formula from the top of the column)

(51)

We substitute and after a simple transformation we get:

(58)

[58] is verified on 12/10/2017

To normalize we multiply all three terms sequentially by normalization factors:

(59)

As a result we have <verified 11/20/16, and again 11/24/16>:

(60)

FORMULA 60 IS INCORRECT

The following formula taken from Ref {3}

(18 - Clenshaw; 62 here)

for and for using

and

we get:

(62)

FORMULA 62 IS CORRECT

OBVIOUSLY THERE IS DIFFERENCE IN SIGNS BETWEEN MY DERIVATION AND CLENSHAW'S

|||******************************************************|||

Taking the first Wikipedia recurrence formula (also formula [76] here):

(63)

saying and substituting we get:

(64)

Recurrence formula (B.8) [6]

(65)

The factors to normalize the recurrence [52] are [49], first formula above and:

(66)

Applying them to equation [52] we get:

(67)

|||******************************************************|||

Also recurrence formulas (Wikipedia: Associated Legendre Polynomials; 7th formula from the top of the column):

(68)

Assuming in formula [55], the value of might be easily calculated

(69)

To get normalized polynomials three factors are needed:

(70)

Applying them consecutively we eventually get:

(71)


Which connects normalized Legendre polynomials we need to apply formula [54] to move along the horizontal row of indexes M from left to right.

|||******************************************************|||

Formula

(72)

is normalized with sequential multiplication by two normalizing factors derived from [28]:

(73)

The result is:

(74)

or:

(75)

|||******************************************************|||

Original Wikipedia formula (the first formula in the column):

(76)

assuming

(77)

Multiplying both sides of [76] sequentially by normalization factors:

we get:

(78)

Ref {3} again:

(11 - Clenshaw; 78 here)

Substituting:

and

(79)


|||******************************************************|||

Belousov's formula ([17]):

(80)

|||******************************************************|||

Efficient Spherical Harmonics Transform aimed at pseudo-spectral numerical simulations by Nathanael Schaeffer.

(80.1)

or:

(80.2)

with:

(80.3)

|||******************************************************|||

Taking this Wikipedia formula as a basis to compute the first derivative of ALP's:

(81)

Multiplying sequentially by two normalization factors [59 - first] and [59 - second] we get

(82)


|||******************************************************|||

  • INEQUALITY:

(83)

After normalization (formula [28]):

  • DETERMINANT [7]

Contribution by Quondum in response to my post in Math Section under the heading "DETERMINANT:"

If you want to describe an arc from and can't you just say that:

and

(84)

where s is an arbitrary new parameter that runs from 0 to 1 and R is the radius of the sphere. Then in a cartesian representation describes a secant In through the sphere, and the re scaling projects that path to the surface, hence defining an arc. It will break down if the starting points are exact antipodes, but that case if pretty ill-defined anyway.

This can be extended to the case of a rectangle defined by by introducing a second parameter t:

and

(85)

Assuming that the natural edges of the rectangle are to , to , to , and to .

It is worth noting that a uniform sampling of s and t, will not uniformly sample the surface of the sphere (especially if the points are far apart), but it is a good starting point. Dragons flight (talk) 19:29, 3 December 2014 (UTC)

  • Take the four vectors to the corners of the rectangle as X1, X2, X3, X4 (in say anticlockwise order).
  • Find the four vectors representing each edge of the rectangle using the cross product: A12 = X1 × X2, A23 = X2 × X3, A34 = X3 × X4, A41 = X4 × X1.
  • Now find the four dot products that I was referring to: d12 = X5A12, d23 = X5A23, etc.
  • When all four are positive (or is it all negative?), X5 is inside the rectangle.
  • INDIVIDUAL ROTATION MATRICES IN 3-D SPACE:[8]

Each rotation is performed in counterclockwise manner, e.g. rotation is performed with the positive direction of axis Z looking at the observer. The coordinates of each point in xy plane are represented by a column vector. The plane therefore rotates in counter-clockwise direction.

  • Right hand rotation around axis X via angle :

(86)
  • Right hand rotation around axis Y via angle

(87)
  • Right hand rotation around axis Z via angle

(88)

My sequence of rotations is defined as:

(89)

where is performed first

  • CAMERA MATRIX

  • BIBLIOGRAPHY

{1} Solomon L'vovich Belousov, Tables of Normalized Associated Legendre Polynomials Pergamon Press 1962.

{2} Dmitrii Alexandrovich Varshalovich, Anatolii Nikolaevich Moskalev, V.K Khersonskii Quantum Theory of Angular Momentum, 1988 World Scientific

{3} S. A. Holmes W. E. Featherstone. A unified approach to the Clenshaw summation and the recursive computation of very high degree and order normalised associated Legendre functions. Journal of Geodesy, May 2002, Volume 76, Issue 5, pp 279–299 [9]

{4} Nathanael Schaeffer Efficient spherical harmonic transforms aimed at pseudospectral numerical simulations STerre, Universit ́e de Grenoble 1, CNRS, F-38041 Grenoble, France [10]

{5} Pavel Holoborodko, Numerical integration. [11], as archived October 13, 2016;

{6} Fourier Series: Basic Results [12]

{7} Michael Kazhdan, Thomas Funkhouser, and Szymon Rusinkiewicz Rotation Invariant Spherical Harmonic Representation of 3D Shape Descriptors Eurographics Symposium on Geometry Processing (2003) L. Kobbelt, P. Schröder, H. Hoppe (Editors) [13]

{8} Spherical Harmonics [14]