Location: cellLib @ a1dd1872c24d / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-08-15 10:06:08+12:00
Desc:
Add Ce_BG for chemical species; Change C_BG to model the electrical capacitor; Add the first version of build BG script based on stoichiometry matrices.
Permanent Source URI:
https://staging.physiomeproject.org/workspace/6bc/rawfile/a1dd1872c24d859834e27b7193a2317e7a4af835/BG_fit/square_error.m

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