mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-22 10:55:57 +00:00
Fix some sonar issues in the code
This commit is contained in:
@@ -66,9 +66,9 @@ namespace mdlp {
|
||||
}
|
||||
}
|
||||
// Insert first & last X value to the cutpoints as them shall be ignored in transform
|
||||
auto minmax = std::minmax_element(X.begin(), X.end());
|
||||
cutPoints.push_back(*minmax.second);
|
||||
cutPoints.insert(cutPoints.begin(), *minmax.first);
|
||||
auto [vmin, vmax] = std::minmax_element(X.begin(), X.end());
|
||||
cutPoints.push_back(*vmax);
|
||||
cutPoints.insert(cutPoints.begin(), *vmin);
|
||||
}
|
||||
|
||||
pair<precision_t, size_t> CPPFImdlp::valueCutPoint(size_t start, size_t cut, size_t end)
|
||||
|
Reference in New Issue
Block a user