LIBML  Version 3.2.4
LIBML DSP Software Library
Enumerations | Functions
tpt_math_distance.h File Reference
This graph shows which files directly or indirectly include this file:

Enumerations

enum  tpt_dtw_window { TPT_DTW_SAKOE_CHIBA_WINDOW = 1 , TPT_DTW_SLANTED_BAND_WINDOW = 3 }
 Specify window types in the dwt algorithm. More...
 

Functions

f32_t tpt_braycurtis_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Bray-Curtis distance between two vectors. More...
 
f32_t tpt_canberra_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Canberra distance between two vectors. More...
 
f32_t tpt_chebyshev_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Chebyshev distance between two vectors. More...
 
f64_t tpt_chebyshev_distance_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Chebyshev distance between two vectors. More...
 
f32_t tpt_cityblock_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Cityblock (Manhattan) distance between two vectors. More...
 
f64_t tpt_cityblock_distance_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Cityblock (Manhattan) distance between two vectors. More...
 
f32_t tpt_correlation_distance_f32 (f32_t *aInDataA, f32_t *aInDataB, uint32_t aCount)
 Correlation distance between two vectors. More...
 
f64_t tpt_correlation_distance_f64 (f64_t *aInDataA, f64_t *aInDataB, uint32_t aCount)
 Correlation distance between two vectors. More...
 
f32_t tpt_cosine_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Cosine distance between two vectors. More...
 
f64_t tpt_cosine_distance_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Cosine distance between two vectors. More...
 
f32_t tpt_dice_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Dice distance between two vectors. More...
 
f32_t tpt_euclidean_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Euclidean distance between two vectors. More...
 
f64_t tpt_euclidean_distance_f64 (const f64_t *aInDataA, const f64_t *aInDataB, uint32_t aCount)
 Euclidean distance between two vectors. More...
 
f32_t tpt_hamming_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Hamming distance between two vectors. More...
 
f32_t tpt_jaccard_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Jaccard distance between two vectors. More...
 
f32_t tpt_jensenshannon_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, uint32_t aCount)
 Jensen-Shannon distance between two vectors. More...
 
f32_t tpt_kulsinski_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Kulsinski distance between two vectors. More...
 
f32_t tpt_minkowski_distance_f32 (const f32_t *aInDataA, const f32_t *aInDataB, int32_t aOrder, uint32_t aCount)
 Minkowski distance between two vectors. More...
 
f32_t tpt_rogerstanimoto_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Rogers Tanimoto distance between two vectors. More...
 
f32_t tpt_russellrao_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Russell-Rao distance between two vectors. More...
 
f32_t tpt_sokalmichener_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Sokal-Michener distance between two vectors. More...
 
f32_t tpt_sokalsneath_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Sokal-Sneath distance between two vectors. More...
 
f32_t tpt_yule_distance (const uint32_t *aInDataA, const uint32_t *aInDataB, uint32_t aNumberOfBools)
 Yule distance between two vectors. More...
 
tpt_status tpt_dtw_distance_f32 (f32_t *pDTW, f32_t *distance, const f32_t *pDistance, const q7_t *pWindow, uint32_t nRows, uint32_t nCols)
 
tpt_status tpt_dtw_init_window_q7 (q7_t *pWindow, const tpt_dtw_window windowType, const int32_t windowSize, uint32_t nRows, uint32_t nCols)
 Window for dynamic time warping computation. More...
 
void tpt_dtw_path_f32 (int16_t *Path, uint32_t *PathLength, const f32_t *pDTW, uint32_t nRows, uint32_t nCols)
 

Enumeration Type Documentation

◆ tpt_dtw_window

Specify window types in the dwt algorithm.

Enumerator
TPT_DTW_SAKOE_CHIBA_WINDOW 
TPT_DTW_SLANTED_BAND_WINDOW 

Function Documentation

◆ tpt_chebyshev_distance_f64()

f64_t tpt_chebyshev_distance_f64 ( const f64_t aInDataA,
const f64_t aInDataB,
uint32_t  aCount 
)

Chebyshev distance between two vectors.

Parameters
[in]aInDataAFirst vector
[in]aInDataBSecond vector
[in]aCountvector length
Returns
distance

◆ tpt_cityblock_distance_f64()

f64_t tpt_cityblock_distance_f64 ( const f64_t aInDataA,
const f64_t aInDataB,
uint32_t  aCount 
)

Cityblock (Manhattan) distance between two vectors.

Parameters
[in]aInDataAFirst vector
[in]aInDataBSecond vector
[in]aCountvector length
Returns
distance

◆ tpt_correlation_distance_f64()

f64_t tpt_correlation_distance_f64 ( f64_t aInDataA,
f64_t aInDataB,
uint32_t  aCount 
)

Correlation distance between two vectors.

The input vectors are modified in place !

Parameters
[in]aInDataAFirst vector
[in]aInDataBSecond vector
[in]aCountvector length
Returns
distance