π 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")