LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Collaboration diagram for Entropy:

Functions

f32_t tpt_entropy_f32 (const f32_t *aIndata, uint32_t aCount)
 Entropy of the floating-potint vector. More...
 
f64_t tpt_entropy_f64 (const f64_t *aIndata, uint32_t aCount)
 Entropy of the floating-potint vector. More...
 

Detailed Description

The entropy function computes the entropy of a vector. The behavior can be defined as follows:

TPT DSP library only supports the entropy function for floating-point data.

Function Documentation

◆ tpt_entropy_f32()

f32_t tpt_entropy_f32 ( const f32_t aIndata,
uint32_t  aCount 
)

Entropy of the floating-potint vector.

Parameters
[in]aIndatapoints to the input vector.
[in]aCountsize of the vectors.
Returns
f32_t

E = -sum (P .* ln (P))

◆ tpt_entropy_f64()

f64_t tpt_entropy_f64 ( const f64_t aIndata,
uint32_t  aCount 
)

Entropy of the floating-potint vector.

Parameters
[in]aIndatapoints to the input vector.
[in]aCountsize of the vectors.
Returns
f64_t

E = -sum (P .* ln (P))