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

Function distance

dlib/svm/sparse_vector.h:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129 template <typename T, typename U>
130 typename T::value_type::second_type distance (
131 const T& a,
132 const U& b
133 )
134 {
135 return std::sqrt(distance_squared(a,b));
136 }
137
138// ------------------------------------------------------------------------------------
139

Callers 15

operator()Method · 0.70
serializeFunction · 0.50
best_functionMethod · 0.50
test_sparseFunction · 0.50
train_one_stepMethod · 0.50
test_one_stepMethod · 0.50
send_jobMethod · 0.50
to_tensorMethod · 0.50
to_tensorMethod · 0.50
process_batchMethod · 0.50
operator()Method · 0.50

Calls 2

distance_squaredFunction · 0.85
sqrtFunction · 0.50

Tested by 3

test_sparseFunction · 0.40
test_one_stepMethod · 0.40