Location: cellLib @ 25f702702c1c / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2021-11-23 11:14:52+13:00
Desc:
Add GHK calculation
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/25f702702c1c129fef08faa593ddecb7a368b9d5/BG_fit/square_error.m

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