1. A computerized method for automating analysis of raw data representing a spectrum, said method comprising: providing said raw data representing a spectrum to a processor and, in said processor, applying at least one post-processing procedure to said raw data, thereby obtaining a processed spectrum; in said processor, reducing a number of numerical values represented by the processed spectrum to a feature vector; in said processor, automatically allocating said feature vector to one group of a plurality of groups of known feature vectors; and in said processor, based on said one group to which said feature vector is allocated, identifying a material from which said spectrum originates and emitting an electronic signal at an output of said processor indicating said material.