Returns the quantization of elements in list according to the classification defined in class (one dimension)