LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
Gaussian Naive Bayes (f32)
Collaboration diagram for Gaussian Naive Bayes (f32):

Data Structures

struct  tpt_gaussian_naive_bayes_instance_f32
 Instance structure for Naive Gaussian Bayesian estimator. More...

Functions

uint32_t tpt_gaussian_naive_bayes_predict_f32 (const tpt_gaussian_naive_bayes_instance_f32 *S, const f32_t *in, f32_t *aOutProbabilities, f32_t *pBufferB)
 Naive Gaussian Bayesian Estimator.

Detailed Description

Naive Gaussian Bayesian estimator using single-precision floats.

Function Documentation

◆ tpt_gaussian_naive_bayes_predict_f32()

uint32_t tpt_gaussian_naive_bayes_predict_f32 ( const tpt_gaussian_naive_bayes_instance_f32 * S,
const f32_t * in,
f32_t * aOutProbabilities,
f32_t * pBufferB )

Naive Gaussian Bayesian Estimator.

Parameters
[in]Spoints to a naive bayes instance *structure
[in]inpoints to the elements of the input *vector.
[out]*aOutProbabilitiespoints to a buffer of length numberOfClasses containing estimated probabilities
[out]*pBufferBpoints to a temporary buffer of length *numberOfClasses
Returns
The predicted class