Location: cellLib @ f43cbb897309 / BG_fit / square_error.m
- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2022-07-01 10:53:27+12:00
- Desc:
- Output dSi in MarkovS model; when connecting inputs of the parent module to the inputs of the children, use pub interface instead of catogary
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/6bc/rawfile/f43cbb897309bd088d85b7d77ca07f3e37dcc8ec/BG_fit/square_error.m
function result = square_error(vector)
if ~iscolumn(vector)
vector = transpose(vector);
end
result = transpose(vector)*vector;
end
