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

Function normalize_array

yolo_detector/darknet_opt/src/utils.c:551–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551void normalize_array(float *a, int n)
552{
553 int i;
554 float mu = mean_array(a,n);
555 float sigma = sqrt(variance_array(a,n));
556 for(i = 0; i < n; ++i){
557 a[i] = (a[i] - mu)/sigma;
558 }
559 mu = mean_array(a,n);
560 sigma = sqrt(variance_array(a,n));
561}
562
563void translate_array(float *a, int n, float s)
564{

Callers 2

normalize_data_rowsFunction · 0.85
optimize_pictureFunction · 0.85

Calls 2

mean_arrayFunction · 0.85
variance_arrayFunction · 0.85

Tested by

no test coverage detected