LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Relative Entropy
Collaboration diagram for Relative Entropy:

Functions

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...
 

Detailed Description

The relative entropy function computes the entropy of two vectors and is also called the Kullback–Leibler divergence (DKL). The behavior can be defined as follows:

TPT DSP library only supports the relative entropy function for floating-point data.

Function Documentation

◆ tpt_relative_entropy_f32()

f32_t tpt_relative_entropy_f32 ( const f32_t aInDataA,
const f32_t aInDataB,
uint32_t  aCount 
)

Relative Entropy of the floating-potint vector.

Parameters
[in]aInDataApoints to the first input vector.
[in]aInDataBpoints to the second input vector.
[in]aCountsize of the vectors.
Returns
f32_t

◆ tpt_relative_entropy_f64()

f64_t tpt_relative_entropy_f64 ( const f64_t aInDataA,
const f64_t aInDataB,
uint32_t  aCount 
)

Relative Entropy of the floating-potint vector.

Parameters
[in]aInDataApoints to the first input vector.
[in]aInDataBpoints to the second input vector.
[in]aCountsize of the vectors.
Returns
f64_t