From a27ae5074bd3abc98b2c910b3d4b1fc5af71f5cf Mon Sep 17 00:00:00 2001 From: Omar Shrit Date: Fri, 15 Dec 2023 02:27:59 +0100 Subject: [PATCH] Initialize the zero Signed-off-by: Omar Shrit --- src/mlpack/methods/dbscan/dbscan.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/methods/dbscan/dbscan.hpp b/src/mlpack/methods/dbscan/dbscan.hpp index ec8e5b9123..8618afd512 100644 --- a/src/mlpack/methods/dbscan/dbscan.hpp +++ b/src/mlpack/methods/dbscan/dbscan.hpp @@ -115,7 +115,7 @@ class DBSCAN ElemType epsilon; //! Zero, just a variable holder for zero value, can be f16, f32 or double. - ElemType zero; + ElemType zero = 0.0; //! Minimum number of points to be in the epsilon-neighborhood (including //! itself) for the point to be a core-point.