Predicts response(s) for the provided sample(s)
[results,f] = model.predict(samples)
[...] = model.predict(..., 'OptionName', optionValue, ...)
Input
- samples The input samples, floating-point matrix.
Output
- results Output matrix of posterior probabilities of each
component given a sample. A
double
matrix of size
nsamples-by-ClustersNumber
.
- f If you pass one sample then this returns the zero-based
index of the most probable mixture component for the given
sample. Otherwise the result for the first sample is
returned.
Options
- Flags The optional predict flags, model-dependent.
Not used. default 0