Location: BG_Kr @ 39d63a7bbd61 / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-12-16 10:50:16+13:00
Desc:
Updating vols with LRd values and updating parameters
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/39d63a7bbd611123d2e3c960f684d4796b63d4ae/Knk_matlab_parameter_fitting/square_error.m

function result = square_error(vector)
    if ~iscolumn(vector)
        vector = transpose(vector);
    end
    result = transpose(vector)*vector;
end