Skip to content
Snippets Groups Projects
Commit c15397ab authored by Keyser, Johannes's avatar Keyser, Johannes
Browse files

Fix mixup of rows/columns.

parent 415ab86e
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,8 @@ function coef = TheilSen(X, y) ...@@ -16,8 +16,8 @@ function coef = TheilSen(X, y)
% coef: Estimated regression coefficients for each predictor column in X, with % coef: Estimated regression coefficients for each predictor column in X, with
% respect to the response variable y. Each column in coef corresponds % respect to the response variable y. Each column in coef corresponds
% to one predictor in X, i.e. it has as many columns as X does. % to one predictor in X, i.e. it has as many columns as X does.
% The first row, i.e. coef(:, 1), contains the estimated offset(s). % The first row, i.e. coef(1, :), contains the estimated offset(s).
% The second row, i.e. coef(:, 2), contains the estimated slope(s). % The second row, i.e. coef(2, :), contains the estimated slope(s).
% (This output format is chosen to avoid confusion, e.g. with previous % (This output format is chosen to avoid confusion, e.g. with previous
% versions of this code.) % versions of this code.)
% %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment