DR error measures: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{technical}} | |||
'''Least-squares linear error''' (here ''linear'' means "in frequency space, not pitch space") is a proposed error measure for approximations to [[delta-rational chord]]s. It has the advantage of not fixing a particular interval in the chord when constructing the chord of best fit. However, like any other numerical measure of concordance or error, you should take it with a grain of salt. | |||
The idea motivating least-squares linear error on a chord as an approximation to a given delta signature is the following (for simplicity, let’s talk about the fully DR case first): | The idea motivating least-squares linear error on a chord as an approximation to a given delta signature is the following (for simplicity, let’s talk about the fully DR case first): | ||
| Line 5: | Line 6: | ||
Say we want the error of a chord 1:''r''<sub>1</sub>:''r''<sub>2</sub>:...:''r''<sub>''n''</sub> (in increasing order), with ''n'' > 1, in the linear domain as an approximation to a fully delta-rational chord with signature +δ<sub>1</sub> +δ<sub>2</sub> ... +δ<sub>''n''</sub>, i.e. a chord | Say we want the error of a chord 1:''r''<sub>1</sub>:''r''<sub>2</sub>:...:''r''<sub>''n''</sub> (in increasing order), with ''n'' > 1, in the linear domain as an approximation to a fully delta-rational chord with signature +δ<sub>1</sub> +δ<sub>2</sub> ... +δ<sub>''n''</sub>, i.e. a chord | ||
x : x + \delta_1 : \cdots : x + \sum_{l | <math>x : x + \delta_1 : \cdots : x + \sum_{l=1}^n \delta_l.</math> | ||
Minimizing the least-squares frequency-domain error by varying x gives you | Minimizing the least-squares frequency-domain error by varying x gives you the closed-form solution | ||
x | <math>x = \frac{\sum_{i=1}^n D_i }{-n + \sum_{i=1}^n f_i},</math> | ||
which you plug back into | which you plug back into | ||
\sqrt{\sum_{ | <math>\sqrt{\sum_{1=1}^n \Bigg( 1 + \frac{D_i}{x} - f_i \Bigg)^2 }</math> | ||
to obtain the least-squares linear error. | to obtain the least-squares linear error. | ||
== External links == | == External links == | ||
* [https://inthar-raven.github.io/delta/ Inthar's DR chord explorer (includes least-squares linear error calculation)] | * [https://inthar-raven.github.io/delta/ Inthar's DR chord explorer (includes least-squares linear error calculation)] | ||
[[Category:Atypical ratios]] | [[Category:Atypical ratios]] | ||
Revision as of 02:25, 11 December 2025
Least-squares linear error (here linear means "in frequency space, not pitch space") is a proposed error measure for approximations to delta-rational chords. It has the advantage of not fixing a particular interval in the chord when constructing the chord of best fit. However, like any other numerical measure of concordance or error, you should take it with a grain of salt.
The idea motivating least-squares linear error on a chord as an approximation to a given delta signature is the following (for simplicity, let’s talk about the fully DR case first):
Say we want the error of a chord 1:r1:r2:...:rn (in increasing order), with n > 1, in the linear domain as an approximation to a fully delta-rational chord with signature +δ1 +δ2 ... +δn, i.e. a chord
Minimizing the least-squares frequency-domain error by varying x gives you the closed-form solution
which you plug back into
to obtain the least-squares linear error.
