change nat2avaMOS
Browse files- local/convert_metrics.py +3 -1
local/convert_metrics.py
CHANGED
@@ -4,7 +4,9 @@ import matplotlib.pyplot as plt
|
|
4 |
# Natural MOS to AVA MOS
|
5 |
|
6 |
def linear_function(x):
|
7 |
-
|
|
|
|
|
8 |
|
9 |
def quadratic_function(x):
|
10 |
return -0.0816 * (x - 5) ** 2 + 5
|
|
|
4 |
# Natural MOS to AVA MOS
|
5 |
|
6 |
def linear_function(x):
|
7 |
+
m = (4 - 1) / (1.5 - 1)
|
8 |
+
b = 1 - m * 1
|
9 |
+
return m * x + b
|
10 |
|
11 |
def quadratic_function(x):
|
12 |
return -0.0816 * (x - 5) ** 2 + 5
|