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