Location: cellLib @ d08cd8d277ec / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2021-11-25 15:41:05+13:00
Desc:
Add units def
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/d08cd8d277ec98ce70a4aedef456273e1946e512/BG_fit/square_error.m

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