Skip to content

Commit

Permalink
Per #2648, committing the main changes for this issue... adding 7 new…
Browse files Browse the repository at this point in the history
… stats to the end of the CTS MODE output and updating the user's guide.
  • Loading branch information
JohnHalleyGotway committed Aug 18, 2023
1 parent 02c52cf commit a8d464e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
21 changes: 21 additions & 0 deletions docs/Users_Guide/mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,27 @@ The MODE tool creates two ASCII output files. The first ASCII file contains cont
* - 41
- ODDS
- Odds Ratio
* - 42
- LODDS
- Logarithm of the Odds Ratio
* - 43
- ORSS
- Odds Ratio Skill Score
* - 44
- EDS
- Extreme Dependency Score
* - 45
- SEDS
- Symmetric Extreme Dependency Score
* - 46
- EDI
- Extreme Dependency Index
* - 47
- SEDI
- Symmetric Extremal Dependency Index
* - 48
- BAGSS
- Bias-Adjusted Gilbert Skill Score

This first file uses the following naming convention:

Expand Down
9 changes: 8 additions & 1 deletion src/libcode/vx_shapedata/mode_columns.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ static const char * mode_cts_columns [] = {
"GSS", // 38
"HK", // 39
"HSS", // 40
"ODDS" // 41
"ODDS", // 41
"LODDS", // 42
"ORSS", // 43
"EDS", // 44
"SEDS", // 45
"EDI", // 46
"SEDI", // 47
"BAGSS" // 48
};

////////////////////////////////////////////////////////////////////////
Expand Down
28 changes: 28 additions & 0 deletions src/tools/core/mode/mode_exec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,34 @@ void ModeExecutive::write_ct_stats()
// ODDS
v = cts[i].odds();
cts_at.set_entry(i+1, c++, v);

// LODDS
v = cts[i].lodds();
cts_at.set_entry(i+1, c++, v);

// ORSS
v = cts[i].orss();
cts_at.set_entry(i+1, c++, v);

// EDS
v = cts[i].eds();
cts_at.set_entry(i+1, c++, v);

// SEDS
v = cts[i].seds();
cts_at.set_entry(i+1, c++, v);

// EDI
v = cts[i].edi();
cts_at.set_entry(i+1, c++, v);

// SEDI
v = cts[i].sedi();
cts_at.set_entry(i+1, c++, v);

// BAGSS
v = cts[i].bagss();
cts_at.set_entry(i+1, c++, v);
}

//
Expand Down

0 comments on commit a8d464e

Please sign in to comment.