Location: BG_TCC @ 8722d74c6d4e / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-20 10:35:40+12:00
Desc:
Fixing number of gate particles and storing in comp environment
Permanent Source URI:
https://models.physiomeproject.org/workspace/831/rawfile/8722d74c6d4e642f266ab3712afec91415c8b01c/Clancy_matlab_parameter_fitting/square_error.m

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