Boolean Distances
- RISCV_DSP_ATTRIBUTE float32_t riscv_dice_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_hamming_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_jaccard_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_kulsinski_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_rogerstanimoto_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_russellrao_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_sokalmichener_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_sokalsneath_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- RISCV_DSP_ATTRIBUTE float32_t riscv_yule_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
- group BoolDist
Distances between two vectors of boolean values.
Booleans are packed in 32 bit words. numberOfBooleans argument is the number of booleans and not the number of words.
Bits are packed in big-endian mode (because of behavior of numpy packbits in in version < 1.17)
Unnamed Group
- RISCV_DSP_ATTRIBUTE float32_t riscv_dice_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Dice distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
Functions
- RISCV_DSP_ATTRIBUTE float32_t riscv_hamming_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Hamming distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_jaccard_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Jaccard distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_kulsinski_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Kulsinski distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_rogerstanimoto_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Rogers Tanimoto distance between two vectors.
Roger Stanimoto distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_russellrao_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Russell-Rao distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_sokalmichener_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Sokal-Michener distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_sokalsneath_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Sokal-Sneath distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance
- RISCV_DSP_ATTRIBUTE float32_t riscv_yule_distance (const uint32_t *pA, const uint32_t *pB, uint32_t numberOfBools)
Yule distance between two vectors.
- Parameters
pA – [in] First vector of packed booleans
pB – [in] Second vector of packed booleans
numberOfBools – [in] Number of booleans
- Returns
distance