def f(xi):
    val = 0.0
    for d in data:
        val += error_single_test_uvc(xi, d)
    return val
def f(xi):
    val = 0.0
    for d in data:
        val += error_single_test_uvc(xi, d)
    return val