Location: BG_CaB @ 8d550a88e040 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-07 14:38:38+13:00
Desc:
Rename q_mem contribution
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82a/rawfile/8d550a88e04057ebadba18d6c8b99f3d7840dd3e/matlab_parameter_fitting/square_error.m

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