apply_data.py 284 Bytes
Newer Older
1
def ApplyData(data, var, model_data):
Philipp Arras's avatar
Comment  
Philipp Arras committed
2
    # TODO This is rather confusing. Delete that eventually.
3 4 5 6
    from .. import DiagonalOperator, Constant, sqrt
    sqrt_n = DiagonalOperator(sqrt(var))
    data = Constant(model_data.position, data)
    return sqrt_n.inverse(model_data - data)