Location: cellLib @ c856b59f39db / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-08-02 15:14:59+12:00
Desc:
Add the BG of a chemical reaction
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/c856b59f39db721d14e9e3e77a231ff986471f95/BG_fit/square_error.m

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