Home
last modified time | relevance | path

Searched refs:templateLength (Results 1 – 4 of 4) sorted by relevance

/cmsis-dsp-latest/Source/DistanceFunctions/
Darm_dtw_init_window_q7.c65 const int32_t templateLength = pWindow -> numCols; in arm_dtw_init_window_q7() local
73 for(int32_t t = 0; t < templateLength; t++) in arm_dtw_init_window_q7()
75 pWindow->pData[templateLength*q + t] = (q7_t)(abs(q-t) <= windowSize); in arm_dtw_init_window_q7()
101 for(int32_t t = 0; t < templateLength; t++) in arm_dtw_init_window_q7()
103 float32_t diag = (1.0f * q * templateLength / queryLength); in arm_dtw_init_window_q7()
104 …pWindow->pData[templateLength*q + t] = (q7_t)(fabsf((float32_t)t - diag) <= (float32_t)windowSize); in arm_dtw_init_window_q7()
Darm_dtw_distance_f32.c92 const uint32_t templateLength = pDistance -> numCols; in arm_dtw_distance_f32() local
98 for(uint32_t t= 0; t < templateLength; t++) in arm_dtw_distance_f32()
114 for(uint32_t t = 1; t < templateLength; t++) in arm_dtw_distance_f32()
126 for(uint32_t t = 1; t < templateLength; t++) in arm_dtw_distance_f32()
139 if (E(pDTW,queryLength-1,templateLength-1) == F32_MAX) in arm_dtw_distance_f32()
144 result = E(pDTW,queryLength-1,templateLength-1); in arm_dtw_distance_f32()
145 result = result / (queryLength + templateLength); in arm_dtw_distance_f32()
/cmsis-dsp-latest/Testing/Source/Tests/
DDistanceTestsF32.cpp17 distances.numCols=this->templateLength; in test_dtw_distance_f32()
21 costs.numCols=this->templateLength; in test_dtw_distance_f32()
25 window.numCols=this->templateLength; in test_dtw_distance_f32()
39 for(int t=0; t < this->templateLength; t++) in test_dtw_distance_f32()
60 for(int t=0; t < this->templateLength; t++) in test_dtw_distance_f32()
65 if (window.pData[q*this->templateLength+t]) in test_dtw_distance_f32()
95 inpB += this->templateLength; in test_dtw_distance_f32()
390 this->templateLength=inputB.nbSamples(); in setUp()
392 tmpA.create(this->queryLength*this->templateLength,DistanceTestsF32::TMPA_F32_ID,mgr); in setUp()
393 tmpB.create(this->queryLength*this->templateLength,DistanceTestsF32::TMPB_F32_ID,mgr); in setUp()
[all …]
/cmsis-dsp-latest/Testing/Include/Tests/
DDistanceTestsF32.h34 int templateLength; variable