LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
Collaboration diagram for Entropy:

Functions

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

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))

Entropy of the floating-potint vector.

Parameters
[in]aIndatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
Entropy

◆ tpt_entropy_f64()

f64_t tpt_entropy_f64 ( const f64_t * pSrcA,
uint32_t blockSize )

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))

Entropy of the floating-potint vector.

Parameters
[in]pSrcAArray of input values.
[in]blockSizeNumber of samples in the input array.
Returns
Entropy -Sum(p ln p)