# API Reference Hub

This hub links to mkdocstrings-generated API pages for the main FoodSpec modules. Use it alongside the narrative chapters to see exact signatures, parameters, and returns.

## How to navigate
- **Core data structures:** See `datasets.md` for `FoodSpectrumSet` and `HyperSpectralCube`.
- **Preprocessing:** Baseline, smoothing, normalization, cropping, FTIR/Raman helpers in `preprocessing.md`.
- **Features:** Peaks, bands, ratios, fingerprint in `features.md`.
- **Chemometrics:** PCA, model factory, validation, mixture, deep in `chemometrics.md`.
- **Workflows:** High-level helpers (oils, heating, QC, protocols) in `workflows.md`.
- **IO & data:** Library creation/loading, CSV import/export, public loaders in `io.md`.
- **Statistics:** Hypothesis tests, correlations, effect sizes in `stats.md`.
- **Metrics & viz:** Classification/regression metrics and plotting utilities in `metrics.md` and `ml.md`.

Functions referenced in narrative docs—e.g., `run_pca`, `ALSBaseline`, IO readers, `run_mannwhitney_u`, `bootstrap_metric`, workflow helpers—are documented in these API pages with parameters, returns, and See also links back to the relevant chapters.

## See also
- Keyword search and [Keyword index](../09-reference/keyword_index.md) for quick lookups.
- Workflow chapters for applied examples and context.
