Location: BG_Kr @ 62eafa5e752d / matlab_parameter_finding / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-01 10:07:15+13:00
Desc:
With new densities found from fitting Pan - K + Kr + Ks to Viswanathan data
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/62eafa5e752d7f66ffdef2c20c88da690e2cc29c/matlab_parameter_finding/square_error.m

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