Location: BG_Ks @ 8b7828a73f6f / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-01 15:00:00+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/8b7828a73f6f41a97bd41e366fc1be770c23531a/matlab_parameter_fitting/square_error.m

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