Entropy

RISCV_DSP_ATTRIBUTE float16_t riscv_entropy_f16 (const float16_t *pSrcA, uint32_t blockSize)
RISCV_DSP_ATTRIBUTE float32_t riscv_entropy_f32 (const float32_t *pSrcA, uint32_t blockSize)
RISCV_DSP_ATTRIBUTE float64_t riscv_entropy_f64 (const float64_t *pSrcA, uint32_t blockSize)
group Entropy

Computes the entropy of a distribution.

Functions

RISCV_DSP_ATTRIBUTE float16_t riscv_entropy_f16 (const float16_t *pSrcA, uint32_t blockSize)

Entropy.

Parameters
  • pSrcA[in] Array of input values.

  • blockSize[in] Number of samples in the input array.

Returns

Entropy -Sum(p ln p)

RISCV_DSP_ATTRIBUTE float32_t riscv_entropy_f32 (const float32_t *pSrcA, uint32_t blockSize)

Entropy.

Parameters
  • pSrcA[in] Array of input values.

  • blockSize[in] Number of samples in the input array.

Returns

Entropy -Sum(p ln p)

RISCV_DSP_ATTRIBUTE float64_t riscv_entropy_f64 (const float64_t *pSrcA, uint32_t blockSize)

Entropy.

Parameters
  • pSrcA[in] Array of input values.

  • blockSize[in] Number of samples in the input array.

Returns

Entropy -Sum(p ln p)