![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Calculates per-class probabilities by counting the number of occurences for each class.
Definition in file get_probs.m.
Go to the source code of this file.
Functions | |
| function | get_probs (in classes, in no_different) |
| function get_probs | ( | in | classes, |
| in | no_different | ||
| ) |
| classes | Zero-based class vector. It may be a column or row vector, doesn't matter. |
| no_different | =(auto) Number of classes. This can be correctly inferred only if the maximum possible class is present within classes. |
[probs] or [probs, numbers_of_occurences]