Location: BG_CaB @ 6c0293d45d07 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2022-06-16 11:43:26+12:00
Desc:
comment unused code
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82a/rawfile/6c0293d45d078b2251702bbae3a2a6c2e4371b37/matlab_parameter_fitting/square_error.m

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