Contingency Table Constructor
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Contingency | Constructs a new contingency table object from counts stored in a matrix. |
Contingency | Constructs a new contingency table for the specified variables. |
Contingency | Constructs a new contingency table for the specified variables. |
Contingency | Constructs a new contingency table object from counts stored in a matrix. |
ContingencyTable(Matrix<Double>)
Constructs a new contingency table object from counts stored in a matrix.
public ContingencyTable(
Matrix<double> counts
)
Parameters
- counts Matrix<Double>
- A matrix that contains the cell counts.
Exceptions
ArgumentNullException | counts is null. |
ArgumentException | One or more elements of counts is not a finite positive number. |
ContingencyTable(ICategoricalVector, ICategoricalVector)
Constructs a new contingency table for the specified variables.
public ContingencyTable(
ICategoricalVector rowVariable,
ICategoricalVector columnVariable
)
Parameters
- rowVariable ICategoricalVector
- A ICategoricalVector that specifies the categories along the rows of the table.
- columnVariable ICategoricalVector
- A ICategoricalVector that specifies the categories along the rows of the table.
Exceptions
ArgumentNullException | rowVariable is null. -or- columnVariable is null. |
Dimension | The length of rowVariable does not equal the length of columnVariable. |
ContingencyTable(ICategoricalVector, ICategoricalVector, Vector<Double>)
Constructs a new contingency table for the specified variables.
public ContingencyTable(
ICategoricalVector rowVariable,
ICategoricalVector columnVariable,
Vector<double> countVariable
)
Parameters
- rowVariable ICategoricalVector
- A ICategoricalVector that specifies the categories along the rows of the table.
- columnVariable ICategoricalVector
- A ICategoricalVector that specifies the categories along the rows of the table.
- countVariable Vector<Double>
- A numerical variable that contains the counts for the categories specified by rowVariable and columnVariable.
Exceptions
ArgumentNullException | rowVariable is null. -or- columnVariable is null. |
Dimension | The length of rowVariable does not equal the length of columnVariable. |
ContingencyTable(Matrix<Double>, IIndex, IIndex)
Constructs a new contingency table object from counts stored in a matrix.
public ContingencyTable(
Matrix<double> counts,
IIndex rowScale,
IIndex columnScale
)
Parameters
Exceptions
ArgumentNullException | counts is null. |
ArgumentException | One or more elements of counts is not a finite positive number. |