where μi and Di are, respectively, the library median values and deviation values for channel i. The likelihoods Ls may be calculated as log likelihoods for numerical safety.
The likelihoods Ls are then normalised over all candidate classes ‘s’ to give probabilities, assuming a uniform prior probability over the classes. The resulting probability for the class {tilde over (s)} is given by: