Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'thresh' option in fitwarp2d.
Singular-value decomposition of the basis vectors can return singular values that differ by 8--10 orders of magnitude. The default value of thresh (1e-5) would discard several of these smaller values. That's a problem because the _inverses_ of the singular values are actually used to produce the solution in _svd. Discarding the largest singular values didn't seem to help either. Since it wasn't entirely clear why some of the singular values were being discarded, I commented out that line of code, and the associated documentation, so now we keep all of the singular values. I also added a detailed explanation of what fitwarp2d, _svd, and _mkbasis actually do. And of course, some tests. If somebody with a lot of linear algebra experience is convinced of a a good reason to discard some of these singular values, we can revisit this (hence why I haven't removed the code, just commented it out for now).
- Loading branch information
Showing
2 changed files
with
201 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters