Skip to content

Commit

Permalink
Per #2279, use the default_weight contstant instead of the literal 1.…
Browse files Browse the repository at this point in the history
…0 value.
  • Loading branch information
JohnHalleyGotway committed Oct 10, 2024
1 parent d520fef commit b2ed2a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libcode/vx_statistics/contable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b2ed2a6

Please sign in to comment.