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

more spectrum filters: resample filter , L2 norm for normalization #146

Closed
vedina opened this issue Sep 3, 2024 · 1 comment · Fixed by #148 or #161
Closed

more spectrum filters: resample filter , L2 norm for normalization #146

vedina opened this issue Sep 3, 2024 · 1 comment · Fixed by #148 or #161
Assignees
Labels
enhancement New feature or request

Comments

@vedina
Copy link
Contributor

vedina commented Sep 3, 2024

wish list

  • resample filter using scipy.interpolate methods (one or more)
        spline = Akima1DInterpolator(spe.x, spe.y)
        y = np.zeros_like(target_x)
        within_range = (self.x4search >= spe.x.min()) & (self.x4search <= spe.x.max())
       # interpolation only zeroes otherwise
        y[within_range] = spline(target_x[within_range])
        spe_spline = rc2.spectrum.Spectrum(x=target_x,y=y)
  • L1, L2 norm options for the normalize filter
@vedina
Copy link
Contributor Author

vedina commented Sep 11, 2024

Please make sure that splines are not extrapolated beyond original spectrum range - as in the code example above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants