Location: cellLib @ 4ff19c3f257b / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-20 20:26:31+12:00
Desc:
Add concentration clamp; Check interface IO when mapping; Add init in the csv to allow building a model with init:
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/4ff19c3f257b33704e3c001e62550111f4ed828a/BG_fit/square_error.m

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