Location: cellLib @ de662ebfc97a / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-08 17:11:47+13:00
Desc:
Put the MSE in the plot
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/de662ebfc97ad4e3b605cd8470a4c0b3bf262d06/BG_fit/square_error.m

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