◆ __init__()
| LibraryMatching.Pearson.__init__ |
( |
| self, |
|
|
| plugin ) |
◆ generate_result()
| LibraryMatching.Pearson.generate_result |
( |
| self, |
|
|
| request, |
|
|
| wavenumbers, |
|
|
| spectrum ) |
a simple correlation routine
- find wavenumber overlap
- interpolate to same wavenumber axis
- do Pearson correlation
library spectra as list of pandas data frames self.library_spectra = list of pd-df expects return to be used as follows: for result in match_result: compounds.append(result["Name"]) scores.append(result["Score"])
◆ lazy_load_library()
| LibraryMatching.Pearson.lazy_load_library |
( |
| self | ) |
|
◆ process()
| LibraryMatching.Pearson.process |
( |
| self, |
|
|
| request, |
|
|
| wavenumbers, |
|
|
| spectrum ) |
◆ reset()
| LibraryMatching.Pearson.reset |
( |
| self | ) |
|
◆ best_library_spectrum
| list LibraryMatching.Pearson.best_library_spectrum = None |
◆ best_library_wavenumbers
| LibraryMatching.Pearson.best_library_wavenumbers = None |
◆ compound_names
| list LibraryMatching.Pearson.compound_names = [] |
◆ ctl
| LibraryMatching.Pearson.ctl = self.plugin.ctl |
◆ library_spectra
| LibraryMatching.Pearson.library_spectra = None |
◆ marquee_message
| str LibraryMatching.Pearson.marquee_message = "Select library directory to perform Raman matching" |
◆ plugin
| LibraryMatching.Pearson.plugin = plugin |
The documentation for this class was generated from the following file: