Equal tuning accuracy functions

From Xenharmonic Reference
This is a technical or mathematical page. While the subject may be of some relevance to music, the page treats the subject in technical language.

There are a number of ways to quantify the tuning accuracy of equal temperaments.

Mu function

The mu function is defined as:

μ(x,σ)=k=1f(x,k)

for a given edo x and weight σ, where

f(x,k)=|mod(2gkx,2)1|kσ

and

g(k)=log2(k).