diff --git a/Cargo.toml b/Cargo.toml index 80781b3..7af28b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fux_kdtree" -version = "0.1.1" +version = "0.2.0" authors = ["fulara "] repository = "https://github.com/fulara/kdtree-rust" keywords = ["tree", "dimension" , "nearest", "search", "neighbor"] diff --git a/src/kdtree/mod.rs b/src/kdtree/mod.rs index 0c90140..5427621 100644 --- a/src/kdtree/mod.rs +++ b/src/kdtree/mod.rs @@ -129,7 +129,7 @@ impl Kdtree { self.nodes.pop(); } - if self.node_depth_during_last_rebuild as f64 * 1.2 < depth as f64 { + if self.node_depth_during_last_rebuild as f64 * 4.0 < depth as f64 { self.gather_points_and_rebuild(); } }