pyacs.glinalg.solve.lsw module
- pyacs.glinalg.solve.lsw.lsw(G, d, std)[source]
Solve least-squares with data uncertainties given as a vector.
- Parameters:
G (ndarray) – m x n model matrix (2D).
d (ndarray) – m observation vector (1D).
std (ndarray) – Standard deviation vector for d (length m).
- Returns:
Solution from ordinary LS on G<- (G.T/std).T, d<- d/std.
- Return type:
ndarray
Notes
System is weighted by 1/std and solved via ls.