LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
Kullback-Leibler

Functions

f32_t tpt_kullback_leibler_f32 (const f32_t *pSrcA, const f32_t *pSrcB, uint32_t blockSize)
 Kullback-Leibler.
f64_t tpt_kullback_leibler_f64 (const f64_t *pSrcA, const f64_t *pSrcB, uint32_t blockSize)
 Kullback-Leibler.

Detailed Description

Function Documentation

◆ tpt_kullback_leibler_f32()

f32_t tpt_kullback_leibler_f32 ( const f32_t * pSrcA,
const f32_t * pSrcB,
uint32_t blockSize )

Kullback-Leibler.

Kullback-Leibler divergence of two floating-point vectors.

Distribution A may contain 0 with Neon version. Result will be right but some exception flags will be set.

Distribution B must not contain 0 probability.

Parameters
[in]*pSrcApoints to an array of input values for probaility distribution A.
[in]*pSrcBpoints to an array of input values for probaility distribution B.
[in]blockSizenumber of samples in the input array.
Returns
Kullback-Leibler divergence D(A || B)

◆ tpt_kullback_leibler_f64()

f64_t tpt_kullback_leibler_f64 ( const f64_t * pSrcA,
const f64_t * pSrcB,
uint32_t blockSize )

Kullback-Leibler.

Kullback-Leibler divergence of two floating-point vectors.

Parameters
[in]*pSrcApoints to an array of input values for probaility distribution A.
[in]*pSrcBpoints to an array of input values for probaility distribution B.
[in]blockSizenumber of samples in the input array.
Returns
Kullback-Leibler divergence D(A || B)