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

Method offset_feature_vector

dlib/test/svm_struct.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 private:
120
121 void offset_feature_vector (
122 feature_vector_type& sample,
123 const unsigned long val
124 ) const
125 {
126 if (val != 0)
127 {
128 for (typename feature_vector_type::iterator i = sample.begin(); i != sample.end(); ++i)
129 {
130 i->first += val;
131 }
132 }
133 }
134
135
136 const std::vector<sample_type>& samples;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected