Location: cellLib @ 53a003ba1ff8 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-02-16 11:57:05+13:00
Desc:
Add Se component
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/53a003ba1ff8a4369a834d9a555eccf626f23417/BG_fit/square_error.m

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