Computes the Kullback-Leibler divergence between two distributions
float16_t arm_kullback_leibler_f16 |
( |
const float16_t * |
pSrcA, |
|
|
const float16_t * |
pSrcB, |
|
|
uint32_t |
blockSize |
|
) |
| |
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] | *pSrcA | points to an array of input values for probaility distribution A. |
[in] | *pSrcB | points to an array of input values for probaility distribution B. |
[in] | blockSize | number of samples in the input array. |
- Returns
- Kullback-Leibler divergence D(A || B)
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] | *pSrcA | points to an array of input values for probaility distribution A. |
[in] | *pSrcB | points to an array of input values for probaility distribution B. |
[in] | blockSize | number of samples in the input array. |
- Returns
- Kullback-Leibler divergence D(A || B)
- Parameters
-
[in] | *pSrcA | points to an array of input values for probaility distribution A. |
[in] | *pSrcB | points to an array of input values for probaility distribution B. |
[in] | blockSize | number of samples in the input array. |
- Returns
- Kullback-Leibler divergence D(A || B)