LIBML  Version 3.2.4
LIBML DSP Software Library
Data Structures | Typedefs | Functions
tpt_math_statistics.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  tpt_gaussian_naivebayes_f32_s
 instance structure of the floating-point Gaussian naïve bayes estimator More...
 
struct  tpt_gaussian_naivebayes_f64_s
 instance structure of the floating-point Gaussian naïve bayes estimator More...
 

Typedefs

typedef struct tpt_gaussian_naivebayes_f32_s tpt_gaussian_naivebayes_f32_t
 instance structure of the floating-point Gaussian naïve bayes estimator More...
 
typedef struct tpt_gaussian_naivebayes_f64_s tpt_gaussian_naivebayes_f64_t
 instance structure of the floating-point Gaussian naïve bayes estimator More...
 

Functions

f32_t tpt_absmax_val_f32 (const f32_t *aInData, uint32_t aCount)
 Maximum absolute value of the double-precision floating-point vector. More...
 
f64_t tpt_absmax_val_f64 (const f64_t *aInData, uint32_t aCount)
 Maximum absolute value of the double-precision floating-point vector. More...
 
q7_t tpt_absmax_val_q7 (const q7_t *aInData, uint32_t aCount)
 Maximum absolute value of the q7 vector. More...
 
q15_t tpt_absmax_val_q15 (const q15_t *aInData, uint32_t aCount)
 Maximum absolute value of the q15 vector. More...
 
q31_t tpt_absmax_val_q31 (const q31_t *aInData, uint32_t aCount)
 Maximum absolute value of the q31 vector. More...
 
f32_t tpt_absmin_val_f32 (const f32_t *aInData, uint32_t aCount)
 Minimum absolute value of the single-precision floating-point vector. More...
 
f64_t tpt_absmin_val_f64 (const f64_t *aInData, uint32_t aCount)
 Minimum absolute value of the single-precision floating-point vector. More...
 
q7_t tpt_absmin_val_q7 (const q7_t *aInData, uint32_t aCount)
 Minimum absolute value of the q7 vector. More...
 
q15_t tpt_absmin_val_q15 (const q15_t *aInData, uint32_t aCount)
 Minimum absolute value of the q15 vector. More...
 
q31_t tpt_absmin_val_q31 (const q31_t *aInData, uint32_t aCount)
 Minimum absolute value of the q31 vector. More...
 
void tpt_mse_f32 (f32_t *aOutData, const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Mean square error value of f32 vector. More...
 
void tpt_mse_f64 (f64_t *aOutData, const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Mean square error value of f32 vector. More...
 
void tpt_mse_q7 (q7_t *aOutData, const q7_t *aInDataA, const q7_t *aInDataB, uint32_t aCount)
 Mean square error value of q7 vector. More...
 
void tpt_mse_q15 (q15_t *aOutData, const q15_t *aInDataA, const q15_t *aInDataB, uint32_t aCount)
 Mean square error value of q15 vector. More...
 
void tpt_mse_q31 (q31_t *aOutData, const q31_t *aInDataA, const q31_t *aInDataB, uint32_t aCount)
 Mean square error value of q31 vector. More...
 
f32_t tpt_entropy_f32 (const f32_t *aIndata, uint32_t aCount)
 Entropy of the floating-potint vector. More...
 
f64_t tpt_entropy_f64 (const f64_t *aIndata, uint32_t aCount)
 Entropy of the floating-potint vector. More...
 
f32_t tpt_relative_entropy_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Relative Entropy of the floating-potint vector. More...
 
f64_t tpt_relative_entropy_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Relative Entropy of the floating-potint vector. More...
 
f32_t tpt_lse_f32 (const f32_t *aInData, uint32_t aCount)
 Log-Sum-Exp of the floating-point vector. More...
 
f64_t tpt_lse_f64 (const f64_t *aInData, uint32_t aCount)
 Log-Sum-Exp of the floating-point vector. More...
 
f32_t tpt_lse_dprod_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount, f32_t *aBuffer)
 Dot product with Log-Sum-Exp of the floating-point vector. More...
 
f64_t tpt_lse_dprod_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount, f64_t *aBuffer)
 Dot product with Log-Sum-Exp of the floating-point vector. More...
 
uint32_t tpt_gaussian_naive_bayes_est_f32 (const tpt_gaussian_naivebayes_f32_t *aInstance, const f32_t *aInData, f32_t *aBuf)
 Naive Gaussian Bayesian Estimator. More...
 
uint32_t tpt_gaussian_naive_bayes_est_f64 (const tpt_gaussian_naivebayes_f64_t *aInstance, const f64_t *aInData, f64_t *aBuf)
 Naive Gaussian Bayesian Estimator. More...
 
void tpt_max_f32 (f32_t *aResult, uint32_t *aIndex, const f32_t *aInData, uint32_t aCount)
 Maximum value of a floating-point vector. More...
 
void tpt_max_f64 (f64_t *aResult, uint32_t *aIndex, const f64_t *aInData, uint32_t aCount)
 Maximum value of a floating-point vector. More...
 
void tpt_max_q15 (q15_t *aResult, uint32_t *aIndex, const q15_t *aInData, uint32_t aCount)
 Maximum value of a Q15 vector. More...
 
void tpt_max_q31 (q31_t *aResult, uint32_t *aIndex, const q31_t *aInData, uint32_t aCount)
 Maximum value of a Q31 vector. More...
 
void tpt_max_q7 (q7_t *aResult, uint32_t *aIndex, const q7_t *aInData, uint32_t aCount)
 Maximum value of a Q7 vector. More...
 
void tpt_mean_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount)
 Mean value of a floating-point vector. More...
 
void tpt_mean_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount)
 Mean value of a floating-point vector. More...
 
void tpt_mean_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount)
 Mean value of a Q15 vector. More...
 
void tpt_mean_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount)
 Mean value of a Q31 vector. More...
 
void tpt_mean_q7 (q7_t *aResult, const q7_t *aInData, uint32_t aCount)
 Mean value of a Q7 vector. More...
 
void tpt_min_f32 (f32_t *aResult, uint32_t *aIndex, const f32_t *aInData, uint32_t aCount)
 Minimum value of a floating-point vector. More...
 
void tpt_min_f64 (f64_t *aResult, uint32_t *aIndex, const f64_t *aInData, uint32_t aCount)
 Minimum value of a floating-point vector. More...
 
void tpt_min_q15 (q15_t *aResult, uint32_t *aIndex, const q15_t *aInData, uint32_t aCount)
 Minimum value of a Q15 vector. More...
 
void tpt_min_q31 (q31_t *aResult, uint32_t *aIndex, const q31_t *aInData, uint32_t aCount)
 Minimum value of a Q31 vector. More...
 
void tpt_min_q7 (q7_t *aResult, uint32_t *aIndex, const q7_t *aInData, uint32_t aCount)
 Minimum value of a Q7 vector. More...
 
void tpt_power_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount)
 Sum of the squares of the elements of a floating-point vector. More...
 
void tpt_power_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount)
 Sum of the squares of the elements of a floating-point vector. More...
 
void tpt_power_q15 (q33_30_t *aResult, const q15_t *aInData, uint32_t aCount)
 Sum of the squares of the elements of a Q15 vector. More...
 
void tpt_power_q31 (q15_48_t *aResult, const q31_t *aInData, uint32_t aCount)
 Sum of the squares of the elements of a Q31 vector. More...
 
void tpt_power_q7 (q17_14_t *aResult, const q7_t *aInData, uint32_t aCount)
 Sum of the squares of the elements of a Q7 vector. More...
 
void tpt_rms_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount)
 Root Mean Square of the elements of a floating-point vector. More...
 
void tpt_rms_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount)
 Root Mean Square of the elements of a floating-point vector. More...
 
void tpt_rms_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount)
 Root Mean Square of the elements of a Q15 vector. More...
 
void tpt_rms_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount)
 Root Mean Square of the elements of a Q31 vector. More...
 
void tpt_std_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount)
 Standard deviation of the elements of a floating-point vector. More...
 
void tpt_std_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount)
 Standard deviation of the elements of a floating-point vector. More...
 
void tpt_std_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount)
 Standard deviation of the elements of a Q15 vector. More...
 
void tpt_std_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount)
 Standard deviation of the elements of a Q31 vector. More...
 
void tpt_var_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount)
 Variance of the elements of a floating-point vector. More...
 
void tpt_var_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount)
 Variance of the elements of a floating-point vector. More...
 
void tpt_var_q15 (q15_t *aResult, const q15_t *aInData, uint32_t aCount)
 Variance of the elements of a Q15 vector. More...
 
void tpt_var_q31 (q31_t *aResult, const q31_t *aInData, uint32_t aCount)
 Variance of the elements of a Q31 vector. More...
 

Typedef Documentation

◆ tpt_gaussian_naivebayes_f32_t

instance structure of the floating-point Gaussian naïve bayes estimator

◆ tpt_gaussian_naivebayes_f64_t

instance structure of the floating-point Gaussian naïve bayes estimator

Function Documentation

◆ tpt_max_f64()

void tpt_max_f64 ( f64_t aResult,
uint32_t *  aIndex,
const f64_t aInData,
uint32_t  aCount 
)

Maximum value of a floating-point vector.

Parameters
[out]aResultmaximum value returned here
[out]aIndexindex of maximum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_min_f64()

void tpt_min_f64 ( f64_t aResult,
uint32_t *  aIndex,
const f64_t aInData,
uint32_t  aCount 
)

Minimum value of a floating-point vector.

Parameters
[out]aResultminimum value returned here
[out]aIndexindex of minimum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_rms_f64()

void tpt_rms_f64 ( f64_t aResult,
const f64_t aInData,
uint32_t  aCount 
)

Root Mean Square of the elements of a floating-point vector.

Parameters
[out]aResultroot mean square value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_std_f64()

void tpt_std_f64 ( f64_t aResult,
const f64_t aInData,
uint32_t  aCount 
)

Standard deviation of the elements of a floating-point vector.

Parameters
[out]aResultstandard deviation value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_var_f64()

void tpt_var_f64 ( f64_t aResult,
const f64_t aInData,
uint32_t  aCount 
)

Variance of the elements of a floating-point vector.

Parameters
[out]aResultvariance value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none