Location: cellLib @ be4db1cb7bdb / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-08-29 15:22:53+12:00
Desc:
Remove q and its ode in Se_BG
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/be4db1cb7bdb17d9500fe90012ba8759b0ee41e9/BG_fit/square_error.m

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