bayes classificator for decomposition