Location: BG_NSCC @ c75f331b160c / parameter_finder / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2025-08-04 14:38:27+12:00
Desc:
uptdating diag with gating
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d54/rawfile/c75f331b160c1ce02438ef644c9fb3c90fa7d02e/parameter_finder/square_error.m

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