Skip to content

Commit

Permalink
Pet #2882, call set_n_pairs() after set_size() ci-run-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Oct 7, 2024
1 parent 8e3e6c7 commit d1772df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tools/core/stat_analysis/parse_stat_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ void parse_mctc_ctable(STATLine &l, ContingencyTable &ct) {
int n_cat, i, j;
char col_str[max_str_len];

// Npairs
ct.set_n_pairs(atoi(l.get_item("TOTAL")));

// N_CAT
n_cat = atoi(l.get_item("N_CAT"));
ct.set_size(n_cat);

// Npairs
ct.set_n_pairs(atoi(l.get_item("TOTAL")));

// Fi_Oj
for(i=0; i<n_cat; i++) {
for(j=0; j<n_cat; j++) {
Expand Down Expand Up @@ -164,13 +164,13 @@ void parse_nx2_ctable(STATLine &l, Nx2ContingencyTable &pct) {
int i, n, oy, on;
char col_str[max_str_len];

// Npairs
pct.set_n_pairs(atoi(l.get_item("TOTAL")));

// N_THRESH
n = atoi(l.get_item("N_THRESH"));
pct.set_size(n-1);

// Npairs
pct.set_n_pairs(atoi(l.get_item("TOTAL")));

// Store a vector of threshold values
vector<double> thresh(n);

Expand Down

0 comments on commit d1772df

Please sign in to comment.