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

Function runtest4

dlib/test/sammon.cpp:165–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 void runtest4(int num_dims)
166 {
167 sammon_projection s;
168 std::vector<matrix<double, 0, 1> > projs;
169 matrix<double,3,1> m;
170 m = 1, 1, 1;
171 projs.push_back(m);
172
173 m = 1, 2, 1;
174 projs.push_back(m);
175
176
177 projs = s(projs,num_dims);
178
179 DLIB_TEST(length(projs[0] - projs[1]) > 1e-5);
180 }
181
182 class sammon_tester : public tester
183 {

Callers 1

perform_testMethod · 0.85

Calls 2

lengthFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected