MCPcopy Create free account
hub / github.com/davisking/dlib / normalize

Function normalize

dlib/svm/sparse_vector.h:451–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450 template <typename T>
451 typename disable_if<is_matrix<T>,T>::type normalize (
452 const T& a
453 )
454 {
455 T temp(a);
456 normalize_inplace(temp);
457 return temp;
458 }
459
460// ------------------------------------------------------------------------------------
461

Callers 6

normalize_inplaceFunction · 0.70
angular_clusterFunction · 0.50
chinese_clusterFunction · 0.50
test_loss_dotFunction · 0.50
matrix_test1Function · 0.50
test_normalizeFunction · 0.50

Calls 1

normalize_inplaceFunction · 0.85

Tested by 3

test_loss_dotFunction · 0.40
matrix_test1Function · 0.40
test_normalizeFunction · 0.40