Fix in the parameter retrieval in the matrix-free method

This commit is contained in:
Dongryeol Lee
2008-02-27 02:08:15 +00:00
parent ffd2a11e26
commit c9d5eb13ac
@@ -474,8 +474,12 @@ class KrylovLpr {
else {
printf("Using the nearest neighbor method...\n");
AllkNN all_knn;
double knn_factor = fx_param_double(module_, "knn_factor", 0.2);
double knn_factor = fx_param_double(NULL, "knn_factor", 0.02);
int knns = (int) (knn_factor * rset_.n_cols());
printf("Each reference point will look for %d nearest neighbors...\n",
knns);
all_knn.Init(rset_, 20, knns);
ArrayList<index_t> resulting_neighbors;
ArrayList<double> distances;