Skip to content

Commit 1616f70

Browse files
src/radmeth/radmeth_nano.cpp: file progress from new files in common and making code more similar to regular radmeth.cpp
1 parent 7638e63 commit 1616f70

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/radmeth/radmeth_nano.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/* Copyright (C) 2025 Andrew D Smith
2-
*
3-
* Author: Andrew D. Smith
42
*
53
* This program is free software: you can redistribute it and/or modify it
64
* under the terms of the GNU General Public License as published by the Free
@@ -13,6 +11,7 @@
1311
* more details.
1412
*/
1513

14+
#include "file_progress.hpp"
1615
#include "radmeth_design.hpp"
1716
#include "radmeth_model.hpp"
1817
#include "radmeth_optimize_gamma.hpp"
@@ -36,8 +35,9 @@
3635
#include <utility>
3736
#include <vector>
3837

38+
template <typename RegressionType>
3939
[[nodiscard]] static bool
40-
has_low_coverage(const Regression<double> &reg, const std::size_t test_factor) {
40+
has_low_coverage(const RegressionType &reg, const std::size_t test_factor) {
4141
bool cvrd_in_test_fact_smpls = false;
4242
const auto &tcol = reg.design.tmatrix[test_factor];
4343
for (std::size_t i = 0; i < reg.n_samples() && !cvrd_in_test_fact_smpls; ++i)
@@ -50,8 +50,9 @@ has_low_coverage(const Regression<double> &reg, const std::size_t test_factor) {
5050
return !cvrd_in_test_fact_smpls || !cvrd_in_other_smpls;
5151
}
5252

53+
template <typename RegressionType>
5354
[[nodiscard]] static bool
54-
has_extreme_counts(const Regression<double> &reg) {
55+
has_extreme_counts(const RegressionType &reg) {
5556
const auto &mc = reg.mc;
5657

5758
bool full_meth = true;

0 commit comments

Comments
 (0)