Contingency Table Constructor
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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
Exceptions
Argument | counts is null. |
Argument | 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
Argument | 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
Argument | 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
Argument | counts is null. |
Argument | One or more elements of counts is not a finite positive number. |