flitsr.advanced.cluster.Cluster¶
- class flitsr.advanced.cluster.Cluster¶
Bases:
ABCA
Clustertechnique takes aSpectrumand returns a collection of spectra that are decompositions of the original- __init__()¶
Methods
__init__()cluster(inp_file, spectrum[, method_lvl])Provides the clustering functionality of this
Clustertechnique.- abstractmethod cluster(inp_file: str, spectrum: Spectrum, method_lvl=False) List[Spectrum]¶
Provides the clustering functionality of this
Clustertechnique. AClustertakes aSpectrumspectrum and returns a collection of spectra which are decompositions of the input spectrum.- Parameters:
inp_file – str: The input file for the input spectrum
spectrum – Spectrum: The input spectrum
method_lvl – (Default value = False) Whether the input spectrum refers to a method level spectrum
- Returns:
A collection of spectra which are decompositions of the input spectrum.