Computes the entropy of a distribution.
More...
Computes the entropy of a distribution.
◆ riscv_entropy_f16()
float16_t riscv_entropy_f16 |
( |
const float16_t * |
pSrcA, |
|
|
uint32_t |
blockSize |
|
) |
| |
Entropy.
- Parameters
-
[in] | pSrcA | Array of input values. |
[in] | blockSize | Number of samples in the input array. |
- Returns
- Entropy -Sum(p ln p)
◆ riscv_entropy_f32()
float32_t riscv_entropy_f32 |
( |
const float32_t * |
pSrcA, |
|
|
uint32_t |
blockSize |
|
) |
| |
Entropy.
- Parameters
-
[in] | pSrcA | Array of input values. |
[in] | blockSize | Number of samples in the input array. |
- Returns
- Entropy -Sum(p ln p)
◆ riscv_entropy_f64()
float64_t riscv_entropy_f64 |
( |
const float64_t * |
pSrcA, |
|
|
uint32_t |
blockSize |
|
) |
| |
Entropy.
- Parameters
-
[in] | pSrcA | Array of input values. |
[in] | blockSize | Number of samples in the input array. |
- Returns
- Entropy -Sum(p ln p)