Location: BG_to_channel @ b2fb84c179b3 / parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-02-25 14:04:31+13:00
Desc:
Renaming gates
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/b2fb84c179b3a316b45ca20384b32258b58e5c66/parameter_fitting/square_error.m

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