🚀 Getting Started
plot_multiple
📚 User's Guide & Tutorials
🔍 Reference
SpectroChemPy
🛠️ Contribute
✨ Credits
Subtract the mean along a dimension (mean-centering).
dataset (NDDataset) – The input data.
NDDataset
dim (str or int, optional, default:’y’) – Dimension along which the mean is computed and subtracted.
str
int
inplace (bool, optional, default:False) – If True, centering is performed in place.
bool
False
True
NDDataset – The centered dataset.
Examples
>>> dataset = scp.read("irdata/nh4.spg") >>> nd = dataset.center(dim="x")