Location: BG_An01 @ d8eca8866793 / parameter_finder / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2025-07-18 12:22:01+12:00
Desc:
update units
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d51/rawfile/d8eca88667931db5b5c1b0a712f901c376db320a/parameter_finder/square_error.m

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