Location: cellLib @ 4f2e241af0f1 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-21 11:56:18+12:00
Desc:
Further automate the mapping process
Permanent Source URI:
https://staging.physiomeproject.org/workspace/6bc/rawfile/4f2e241af0f1dbffded70d0aa6b23e73e5f06b01/BG_fit/square_error.m

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