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

Function min

dlib/svm/sparse_vector.h:807–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805
806 template <typename T>
807 typename T::value_type::second_type min (
808 const T& a
809 )
810 {
811 typedef typename T::value_type::second_type type;
812
813 type temp = 0;
814 for (typename T::const_iterator i = a.begin(); i != a.end(); ++i)
815 {
816 if (temp > i->second)
817 temp = i->second;
818 }
819 return temp;
820 }
821
822// ------------------------------------------------------------------------------------
823

Callers 15

set_lambdaMethod · 0.70
set_lambda_class1Method · 0.70
set_lambda_class2Method · 0.70
trainMethod · 0.70
set_search_lambdasMethod · 0.70
operator()Method · 0.70
do_trainMethod · 0.70
set_search_lambdasMethod · 0.70
operator()Method · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected