IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

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 Documentation

function get_probs ( in  classes,
in  no_different 
)
Parameters
classesZero-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.
Returns
[probs] or [probs, numbers_of_occurences]