Questions tagged [spectra]

32 questions
4
votes
1 answer

Savitzky-Golay derivatives, computed with SciPy's signal.savgol_filter need to be scaled?

I'm computing the first and second derivatives of a signal and then plot. I chose the Savitzky-Golay filter as implemented in SciPy (signal module). I'm wondering if the output needs to be scaled - in the Matlab implementation of the same filter, it…
Irina Ciortan
  • 43
  • 1
  • 6
2
votes
1 answer

C++ Spectra with RowMajor sparse matrix

I'm trying to use the Spectra 3.5 Library on my Linux machine, and the SparseGenMatProd wrapper for the Matrix-Vector multiplication only seems to work when the sparse matrix is in ColMajor format. Is this normal behavior and if so, how can I fix it…
1
vote
2 answers

What is the most efficient way to apply operations between arrays of different sizes to each row of a 3D array?

I have a large three dimensional array corresponding to a hyperspectral cube in spatRaster format. I also have two smaller ones (smaller area) that correspond to reference images (dark and white) used to correct values in the pixels of the cube. The…
Mr G
  • 33
  • 4
1
vote
0 answers

Is there any faster way to calculate Eigenvalues in C++?

I have to solve for Eigenvalues from Sparse Matrices that are millions*millions at least and can get even bigger!! The problem is that I am getting very slow results even when I solve for 10 smallest eigenvalues from 20000x20000 matrix using the…
1
vote
1 answer

How can I fill the space between the x-axis and the curve with the spectral colors?

how can I fill the space between the x-axis and the spectral curve with the corresponding color? It only shows the colors in a band at the bottom. It would be great if the plot looks like the example:…
1
vote
1 answer

Frequency to RGB

I am looking for a way to convert a dynamic frequency signal to its corresponding color. and I found this script here: