From b2ed2a6dff30f1981cd2dce3a5e3c5a27fc58801 Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Thu, 10 Oct 2024 16:04:30 +0000 Subject: [PATCH] Per #2279, use the default_weight contstant instead of the literal 1.0 value. --- src/libcode/vx_statistics/contable.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libcode/vx_statistics/contable.h b/src/libcode/vx_statistics/contable.h index bce3ad20fc..a0aa5041ba 100644 --- a/src/libcode/vx_statistics/contable.h +++ b/src/libcode/vx_statistics/contable.h @@ -84,7 +84,7 @@ class ContingencyTable { void set_entry(int row, int col, double value); // Increment table entries - void inc_entry(int row, int col, double weight=1.0); + void inc_entry(int row, int col, double weight=default_weight); // Get values double total() const; @@ -159,8 +159,8 @@ class Nx2ContingencyTable : public ContingencyTable { double threshold(int index) const; // 0 <= index <= Nrows // Increment table entries - void inc_event (double value, double weight=1.0); - void inc_nonevent (double value, double weight=1.0); + void inc_event (double value, double weight=default_weight); + void inc_nonevent (double value, double weight=default_weight); // Get table entries double event_total_by_thresh(double) const; @@ -236,11 +236,11 @@ class TTContingencyTable : public ContingencyTable { void set_fy_oy(double); // Increment table entries - void inc_fn_on(double weight=1.0); - void inc_fy_on(double weight=1.0); + void inc_fn_on(double weight=default_weight); + void inc_fy_on(double weight=default_weight); - void inc_fn_oy(double weight=1.0); - void inc_fy_oy(double weight=1.0); + void inc_fn_oy(double weight=default_weight); + void inc_fy_oy(double weight=default_weight); // Get table entries double fn_on() const;