From 2f3916c8d7c5e4d18ef89e3c8f490c4197859ccb Mon Sep 17 00:00:00 2001 From: Adarsh Santoria <108261986+AdarshSantoria@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:11:37 +0530 Subject: [PATCH] fixing codes in approx_kfn doc --- doc/tutorials/approx_kfn.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorials/approx_kfn.md b/doc/tutorials/approx_kfn.md index 33a4237d98..ce422f7cbd 100644 --- a/doc/tutorials/approx_kfn.md +++ b/doc/tutorials/approx_kfn.md @@ -812,7 +812,7 @@ extern arma::mat dataset; QDAFN<> qdafn(dataset, 10, 5); // Print the fifth point of the candidate set. -std::cout << ds.CandidateSet(2).col(4).t(); +std::cout << qdafn.CandidateSet(2).col(4).t(); ``` ### Retraining on a new reference set @@ -896,7 +896,7 @@ extern arma::mat querySet; // Construct the object, performing the default dual-tree search with // approximation level epsilon = 0.05. -KFN kfn(dataset, KFN::DUAL_TREE_MODE, 0.05); +KFN kfn(dataset, DUAL_TREE_MODE, 0.05); // Search for approximate furthest neighbors. arma::Mat neighbors;