fix: rename variable to pass typos check
This commit is contained in:
+3
-3
@@ -304,10 +304,10 @@ fn hv_recursive(points: &[Vec<f64>], reference: &[f64]) -> f64 {
|
|||||||
// Project points[0..=i] onto the first d-1 dimensions and
|
// Project points[0..=i] onto the first d-1 dimensions and
|
||||||
// keep only the non-dominated subset.
|
// keep only the non-dominated subset.
|
||||||
let projected: Vec<Vec<f64>> = sorted[..=i].iter().map(|p| p[..d - 1].to_vec()).collect();
|
let projected: Vec<Vec<f64>> = sorted[..=i].iter().map(|p| p[..d - 1].to_vec()).collect();
|
||||||
let nd = non_dominated_minimize(&projected);
|
let non_dom = non_dominated_minimize(&projected);
|
||||||
|
|
||||||
if !nd.is_empty() {
|
if !non_dom.is_empty() {
|
||||||
result += height * hv_recursive(&nd, &sub_ref);
|
result += height * hv_recursive(&non_dom, &sub_ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user