Location: BG_Kr @ dec2ae3403bc / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-05 11:37:26+12:00
Desc:
Changing Kr to be Kernik formulation
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/dec2ae3403bc1bb34fcc90e788b01b2ba4106c55/Knk_matlab_parameter_fitting/square_error.m

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