Location: BG_Kr @ 54790befc6c2 / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-08 14:19:02+12:00
Desc:
guess density
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/54790befc6c29a7d35bd2c351a07c807f6080848/Knk_matlab_parameter_fitting/square_error.m

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