Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Theil-Sen-Matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Keyser, Johannes
Theil-Sen-Matlab
Commits
c15397ab
Commit
c15397ab
authored
3 years ago
by
Keyser, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Fix mixup of rows/columns.
parent
415ab86e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TheilSen.m
+2
-2
2 additions, 2 deletions
TheilSen.m
with
2 additions
and
2 deletions
TheilSen.m
+
2
−
2
View file @
c15397ab
...
@@ -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.)
%
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment