Location: BG_to_channel @ bf8adc076225 / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-06 11:04:50+12:00
Desc:
Reformulate gate to be same as Kernik19
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/bf8adc076225851445ad36d34bfcd0a2ac83d69f/Clancy_matlab_parameter_fitting/square_error.m

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