Entropy

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

Computes the entropy of a distribution.

Functions

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)

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)

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)