Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spc fit poly below on highwavelength range with high polynomial order can not solve vander monde matrix #67

Open
ADorosz5 opened this issue Dec 1, 2021 · 4 comments
Assignees

Comments

@ADorosz5
Copy link

ADorosz5 commented Dec 1, 2021

spectra_CHstretch <- spectra[,, 2600 ~ 3150]
plot (spectra_CHstretch)
baseline <- spc.fit.poly.below(spectra_CHstretch, poly.order = 6)

@GegznaV
Copy link
Member

GegznaV commented Dec 1, 2021

@cbeleites, is it enough information for you to reproduce the error? Could a reproducible example be added to this thread?

@cbeleites
Copy link
Collaborator

@GegznaV yes, it's good for me. I think I know the reason of the problem, and I'll be able to construct also unit test data.

We found it as part of a course, and ran into the other issue #68 about dput() when trying to add a reproducible example - otherwise there would have been one....

@GegznaV
Copy link
Member

GegznaV commented Aug 7, 2022

@cbeleites, this issue has the status "Urgent": would you have time to try solving this issue ASAP?
Otherwise wouldn't it be better to use a lower level of priority?

@GegznaV
Copy link
Member

GegznaV commented May 2, 2024

  1. This issue is not solved for 3 years, so it is not urgent.
  2. This issue lacks a reprex, so I'll try to create it myself. @cbeleites and @ADorosz5, please, confirm that the reprex shows the essence of the issue:
suppressPackageStartupMessages({
  library(hyperSpec)
})

spectra_CHstretch <- flu[,, 450 ~ 495]
baseline <- spc_fit_poly_below(spectra_CHstretch, poly.order = 6)
#> Error in qr.solve(vdm[use, ], y[use, i]): singular matrix 'a' in solve

Created on 2024-05-02 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants