Tenney–Euclidean metrics: Difference between revisions
No edit summary |
Clarify |
||
Line 2: | Line 2: | ||
== TE norm == | == TE norm == | ||
The '''Tenney–Euclidean norm''' ('''TE norm''') or '''Tenney–Euclidean complexity''' ('''TE complexity''') applies to | The '''Tenney–Euclidean norm''' ('''TE norm''') or '''Tenney–Euclidean complexity''' ('''TE complexity''') applies to [[val]]s as well as to [[monzo]]s. | ||
Let us define the val weighting matrix ''W'' to be the {{w|diagonal matrix}} with values 1, 1/log<sub>2</sub>3, 1/log<sub>2</sub>5 … 1/log<sub>2</sub>''p'' along the diagonal. [[ | Let us define the val weighting matrix ''W'' to be the {{w|diagonal matrix}} with values 1, 1/log<sub>2</sub>3, 1/log<sub>2</sub>5 … 1/log<sub>2</sub>''p'' along the diagonal. For the [[harmonic limit|''p''-limit]] prime basis ''Q'' = {{val| 2 3 5 … ''p'' }}, | ||
<math>\displaystyle W = \operatorname {diag} (1/\log_2 (Q))</math> | |||
Left-multiplying a vector by this matrix scales each entry by the corresponding entry of the diagonal matrix. | |||
Given a val '''a''' expressed as a row vector, the corresponding vector in weighted coordinates is {{nowrap|'''v''' {{=}} '''a'''''W''}}, with transpose {{nowrap|'''v'''{{t}} {{=}} ''W'''''a'''{{t}}}} where {{t}} denotes the transpose (writing the vector as a column vector instead of a row vector, as in the mathematical guide). Then the dot product of weighted vals is {{nowrap|'''vv'''{{t}} {{=}} '''a'''''W'' <sup>2</sup>'''a'''{{t}}}} (the dot product of a vector with itself, or the sum of the squares of its entries), which makes the Euclidean metric on vals<sup>[how?]</sup>, a measure of complexity, to be {{nowrap|‖'''v'''‖<sub>2</sub> {{=}} √('''vv'''{{t}})}} {{nowrap|{{=}} √({{subsup|''a''|2|2}} + {{subsup|''a''|3|2}}/(log<sub>2</sub>3)<sup>2</sup> + … + {{subsup|''a''|''p''|2}}/(log<sub>2</sub>''p'')<sup>2</sup>)}}; dividing this by √(''n''), where {{nowrap|''n'' {{=}} π(''p'')}} is the number of primes to ''p'', gives the TE norm of a val. | |||
Similarly, if '''b''' is a monzo, then in weighted coordinates the monzo becomes {{nowrap|'''m''' {{=}} ''W''{{inv}}'''b'''}}, and the dot product is {{nowrap|'''m'''{{t}}'''m''' {{=}} '''b'''{{t}}''W''<sup>-2</sup>'''b'''}}, leading to {{nowrap|√('''m'''{{t}}'''m''') {{=}} √({{subsup|''b''|2|2}} + (log<sub>2</sub>3)<sup>2</sup>{{subsup|''b''|3|2}} + … + (log<sub>2</sub>''p'')<sup>2</sup>{{subsup|''b''|''p''|2}})}}; multiplying this by √(''n'') gives the dual RMS norm on monzos which serves as a measure of complexity. | Similarly, if '''b''' is a monzo, then in weighted coordinates the monzo becomes {{nowrap|'''m''' {{=}} ''W''{{inv}}'''b'''}}, and the dot product is {{nowrap|'''m'''{{t}}'''m''' {{=}} '''b'''{{t}}''W''<sup>-2</sup>'''b'''}}, leading to {{nowrap|√('''m'''{{t}}'''m''') {{=}} √({{subsup|''b''|2|2}} + (log<sub>2</sub>3)<sup>2</sup>{{subsup|''b''|3|2}} + … + (log<sub>2</sub>''p'')<sup>2</sup>{{subsup|''b''|''p''|2}})}}; multiplying this by √(''n'') gives the dual RMS norm on monzos which serves as a measure of complexity. |