Location: BG_Ks @ 052a5b851285 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-01 14:50:47+13:00
Desc:
With new densities found from fitting Pan - K + Kr to Clancy model
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82d/rawfile/052a5b851285ab3f448ae26622b77c962afff28b/matlab_parameter_fitting/square_error.m

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