Skip to content

Commit

Permalink
Added comment in code
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Apr 18, 2024
1 parent be4db0d commit 4ccd35a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inst/bootbayes.m
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,9 @@

function param = lmfit (X, y, W, L)

% Get model coefficients by solving the linear equation by matrix arithmetic
% Get model coefficients by solving the linear equation by matrix arithmetic.
% Solve the linear least squares problem using the Moore-Penrose pseudo
% inverse (pinv) to make it more robust to the situation where X is singular.
% If optional arument W is provided, it should be a diagonal matrix of
% weights or a positive definite covariance matrix
n = numel (y);
Expand Down

0 comments on commit 4ccd35a

Please sign in to comment.