Location: cellLib @ 19b058307b9f / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-20 10:24:11+12:00
Desc:
Add units; pass the inputs to the children models
Permanent Source URI:
https://staging.physiomeproject.org/workspace/6bc/rawfile/19b058307b9f998bfffa80c25aa156fa64500e44/BG_fit/square_error.m

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