NMSIS-DSP
Version 1.3.1
NMSIS DSP Software Library
|
Canberra distance. More...
Functions | |
RISCV_DSP_ATTRIBUTE float16_t | riscv_canberra_distance_f16 (const float16_t *pA, const float16_t *pB, uint32_t blockSize) |
Canberra distance between two vectors. More... | |
RISCV_DSP_ATTRIBUTE float32_t | riscv_canberra_distance_f32 (const float32_t *pA, const float32_t *pB, uint32_t blockSize) |
Canberra distance between two vectors. More... | |
Canberra distance.
RISCV_DSP_ATTRIBUTE float16_t riscv_canberra_distance_f16 | ( | const float16_t * | pA, |
const float16_t * | pB, | ||
uint32_t | blockSize | ||
) |
Canberra distance between two vectors.
This function may divide by zero when samples pA[i] and pB[i] are both zero. The result of the computation will be correct. So the division per zero may be ignored.
[in] | pA | First vector |
[in] | pB | Second vector |
[in] | blockSize | vector length |
RISCV_DSP_ATTRIBUTE float32_t riscv_canberra_distance_f32 | ( | const float32_t * | pA, |
const float32_t * | pB, | ||
uint32_t | blockSize | ||
) |
Canberra distance between two vectors.
This function may divide by zero when samples pA[i] and pB[i] are both zero. The result of the computation will be correct. So the division per zero may be ignored.
[in] | pA | First vector |
[in] | pB | Second vector |
[in] | blockSize | vector length |