API Reference
SpectraKit's API is organized into subpackages by function category. All core
processing functions are also re-exported from the top-level spectrakit namespace.
Core Containers
Processing Functions
| Module |
Functions |
Description |
| Baseline |
baseline_als, baseline_snip, baseline_polynomial, baseline_rubberband |
Baseline correction |
| Normalize |
normalize_snv, normalize_minmax, normalize_area, normalize_vector |
Normalization |
| Smooth |
smooth_savgol, smooth_whittaker |
Smoothing / noise reduction |
| Derivative |
derivative_savgol, derivative_gap_segment |
Spectral derivatives |
| Scatter |
scatter_msc, scatter_emsc |
Scatter correction |
| Transform |
transform_kubelka_munk, transform_atr_correction |
Spectral transforms |
| Operations |
spectral_subtract, spectral_average, spectral_interpolate |
Spectral arithmetic |
| Peaks |
peaks_find, peaks_integrate |
Peak analysis |
| Similarity |
similarity_cosine, similarity_pearson, similarity_spectral_angle, similarity_euclidean |
Similarity metrics |
I/O and Visualization
| Module |
Description |
| IO |
File format parsers |
| Plot |
Plotting utilities (requires matplotlib) |
Optional Integrations
| Module |
Description |
| Contrib |
pybaselines and lmfit backends |
| sklearn |
scikit-learn transformer bridge |