mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-16 07:55:58 +00:00
Add echo total of cut points in sample
This commit is contained in:
@@ -45,6 +45,7 @@ int main(int argc, char** argv)
|
|||||||
cout << y[i] << endl;
|
cout << y[i] << endl;
|
||||||
}
|
}
|
||||||
mdlp::CPPFImdlp test = mdlp::CPPFImdlp();
|
mdlp::CPPFImdlp test = mdlp::CPPFImdlp();
|
||||||
|
auto total = 0;
|
||||||
for (auto i = 0; i < attributes.size(); i++) {
|
for (auto i = 0; i < attributes.size(); i++) {
|
||||||
auto min_max = minmax_element(X[i].begin(), X[i].end());
|
auto min_max = minmax_element(X[i].begin(), X[i].end());
|
||||||
cout << "Cut points for " << get<0>(attributes[i]) << endl;
|
cout << "Cut points for " << get<0>(attributes[i]) << endl;
|
||||||
@@ -54,6 +55,8 @@ int main(int argc, char** argv)
|
|||||||
for (auto item : test.getCutPoints()) {
|
for (auto item : test.getCutPoints()) {
|
||||||
cout << item << endl;
|
cout << item << endl;
|
||||||
}
|
}
|
||||||
|
total += test.getCutPoints().size();
|
||||||
}
|
}
|
||||||
|
cout << "Total cut points: " << total << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user