spectrochempy.denoise
- denoise(dataset, ratio=99.8, **kwargs)[source]
Denoise the data using a PCA method.
Work only on 2D dataset.
- Parameters:
dataset (
NDDataset
or a ndarray-like object) – Input object. Must have two dimensions.ratio (
float
, optional, default: 99.8%) – Ratio of variance explained in %. The number of components selected for reconstruction is chosen automatically such that the amount of variance that needs to be explained is greater than the percentage specified byratio
.**kwargs – Optional keyword parameters (see Other Parameters).
- Returns:
NDDataset
– Denoised 2D dataset- Other Parameters:
dim (str or int, optional, default=’x’.) – Specify on which dimension to apply this method. If
dim
is specified as an integer it is equivalent to the usualaxis
numpy parameter.log_level (int, optional, default: “WARNING”) – Set the logging level for the method.