| 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 | { |
no test coverage detected