MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / dist_array

Function dist_array

yolo_detector/darknet_opt/src/utils.c:535–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535float dist_array(float *a, float *b, int n, int sub)
536{
537 int i;
538 float sum = 0;
539 for(i = 0; i < n; i += sub) sum += pow(a[i]-b[i], 2);
540 return sqrt(sum);
541}
542
543float mse_array(float *a, int n)
544{

Callers 3

best_3d_shift_rFunction · 0.85
best_3d_shiftFunction · 0.85
composite_3dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected