spectrochempy.denoise
- denoise(dataset, ratio=99.8, **kwargs)[source]
- Denoise the data using a PCA method. - Work only on 2D dataset. - Parameters:
- dataset ( - NDDatasetor 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 by- ratio.
- **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 - dimis specified as an integer it is equivalent to the usual- axisnumpy parameter.
- log_level (int, optional, default: “WARNING”) – Set the logging level for the method. 
 
 
