Location: cellLib @ 49aca7bf14ba / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-09 11:18:46+13:00
Desc:
Expose q in gate model;
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/49aca7bf14ba8afe430410adfe7271f325e7108e/BG_fit/square_error.m

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