statcpp
C++17 Header-Only Statistics Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
statcpp::contingency_table_result Struct Reference

Contingency table (cross-tabulation) result. More...

#include <categorical.hpp>

Public Attributes

std::vector< std::vector< std::size_t > > table
 Observed frequencies.
 
std::vector< std::size_t > row_totals
 Row totals.
 
std::vector< std::size_t > col_totals
 Column totals.
 
std::size_t total
 Grand total.
 
std::size_t n_rows
 Number of rows.
 
std::size_t n_cols
 Number of columns.
 

Detailed Description

Contingency table (cross-tabulation) result.

Definition at line 23 of file categorical.hpp.

Member Data Documentation

◆ col_totals

std::vector<std::size_t> statcpp::contingency_table_result::col_totals

Column totals.

Definition at line 26 of file categorical.hpp.

◆ n_cols

std::size_t statcpp::contingency_table_result::n_cols

Number of columns.

Definition at line 29 of file categorical.hpp.

◆ n_rows

std::size_t statcpp::contingency_table_result::n_rows

Number of rows.

Definition at line 28 of file categorical.hpp.

◆ row_totals

std::vector<std::size_t> statcpp::contingency_table_result::row_totals

Row totals.

Definition at line 25 of file categorical.hpp.

◆ table

std::vector<std::vector<std::size_t> > statcpp::contingency_table_result::table

Observed frequencies.

Definition at line 24 of file categorical.hpp.

◆ total

std::size_t statcpp::contingency_table_result::total

Grand total.

Definition at line 27 of file categorical.hpp.


The documentation for this struct was generated from the following file: