Location: BG_Kr @ e95514b3ab1f / matlab_parameter_finding / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-01 13:56:25+13:00
Desc:
With new densities found from fitting Pan - K + Kr to Clancy model
Permanent Source URI:
http://models.cellml.org/workspace/82c/rawfile/e95514b3ab1f0bb93bd69dff14346e3e15668e1f/matlab_parameter_finding/square_error.m

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