From 964555de20175f4c1cd9a2d9525fa1bcca783322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Sat, 25 Feb 2023 18:31:57 +0100 Subject: [PATCH] Add echo total of cut points in sample --- sample/sample.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sample/sample.cpp b/sample/sample.cpp index 02ef84b..117caba 100644 --- a/sample/sample.cpp +++ b/sample/sample.cpp @@ -45,6 +45,7 @@ int main(int argc, char** argv) cout << y[i] << endl; } mdlp::CPPFImdlp test = mdlp::CPPFImdlp(); + auto total = 0; for (auto i = 0; i < attributes.size(); i++) { auto min_max = minmax_element(X[i].begin(), X[i].end()); cout << "Cut points for " << get<0>(attributes[i]) << endl; @@ -54,6 +55,8 @@ int main(int argc, char** argv) for (auto item : test.getCutPoints()) { cout << item << endl; } + total += test.getCutPoints().size(); } + cout << "Total cut points: " << total << endl; return 0; }