pub trait NormalBayesClassifierConst: StatModelConst {
    fn as_raw_NormalBayesClassifier(&self) -> *const c_void;

    fn predict_prob(
        &self,
        inputs: &dyn ToInputArray,
        outputs: &mut dyn ToOutputArray,
        output_probs: &mut dyn ToOutputArray,
        flags: i32
    ) -> Result<f32> { ... } }
Expand description

Bayes classifier for normally distributed data.

See also

@ref ml_intro_bayes

Required Methods

Provided Methods

Predicts the response for sample(s).

The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.

C++ default parameters
  • flags: 0

Implementors