Location: cellLib @ af1f8d8d26f3 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-06-07 10:38:19+12:00
Desc:
Add a simulation script without reset
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/af1f8d8d26f3cd9f85a1de11bd50811021c52f06/BG_fit/square_error.m

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