From 94f5c57c324fb5f8baf5f931e771b6973dbe7292 Mon Sep 17 00:00:00 2001 From: Jean-Romain Date: Tue, 24 Sep 2024 05:37:42 -0400 Subject: [PATCH] R_control = Inf --- src/LAS.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LAS.cpp b/src/LAS.cpp index 5c0d0c6c..c9822a2f 100644 --- a/src/LAS.cpp +++ b/src/LAS.cpp @@ -352,8 +352,9 @@ NumericVector LAS::compute_range(DataFrame flightlines) // Compute the median sensor elevation then average range for this sensor // elevation. This gives a rough idea of the expected range and allows for // detecting failure and bad computations - double median_z_sensor = Rcpp::median(z); - double R_control = mean(median_z_sensor - Z); + //double median_z_sensor = Rcpp::median(z); + //double R_control = mean(median_z_sensor - Z); + double R_control = DBL_MAX; NumericVector R(npoints);