KevinGeng commited on
Commit
feb689b
1 Parent(s): 0514036

change nat2avaMOS

Browse files
Files changed (1) hide show
  1. 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
- return 8 * x - 8
 
 
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