MCPcopy Create free account
hub / github.com/amov-lab/Prometheus / dist_array

Function dist_array

Modules/object_detection/src/darknet_lib/src/utils.c:538–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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