Weighted Total Least Squares with correlated coefficients

版本 1.0.0 (42.5 KB) 作者: Matthias Wurm
Solving linear systems with correlated coefficients using weighted total least squares
66.0 次下载
更新时间 2021/12/17

查看许可证

This function solves over-determined linear systems of the form (A+dA)x = (b+db) numerically.
Individual weights for and correlations between the deviations [dA,db] are allowed.
These weights have to be given as a matrix W, which typically is the inverse of a (positive definite) covariance-matrix.
If A is a (m x n) matrix, then b has to be a (m x 1) vector and the weight matrix has to be a (m (n+1) x m (n+1)) matrix.
This is different from the so-called "general total leat squares" method, where only column or row-wise correlations are considered.
Additionally it is allowed to declare individual elements of a [A,b] to be free of errors.
The covariance matrix of the best fitting x-vector is provided.
The code has been optimized to achieve high computational speed.
"lsqnonlin" from the "optimization toolbox" is needed.
For large problems and highest performance A, b, and W should be declared as gpuArrays (which requires the "Parallel Computing Toolbox").
Partially modified code from other authors is required and included:
- "wtls_line" and "wtlsc_line" from Anton
- "multiprod" from de Leva
- "derivest", "hessdiag", "hessian", and "nderivediag" from D'Errico
- "gmtls" and "mtls" from Houtzager
- "gtls" from Rhode
(full references are given in the paper)
Best practice: Use the demo to see some examples and check the paper.

引用格式

Matthias Wurm (2024). Weighted Total Least Squares with correlated coefficients (https://www.mathworks.com/matlabcentral/fileexchange/103720-weighted-total-least-squares-with-correlated-coefficients), MATLAB Central File Exchange. 检索时间: .

Wurm, Matthias. “A Universal and Fast Method to Solve Linear Systems with Correlated Coefficients Using Weighted Total Least Squares.” Measurement Science and Technology, vol. 33, no. 1, IOP Publishing, Nov. 2021, p. 015017, doi:10.1088/1361-6501/ac32ec.

查看更多格式
MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0