GetProblemType: Get problem type function

Description Usage Arguments Examples

Description

This function apply TestType function multiple times, to be able of determine the type of problems between following 1.0 = Matrix size 0 1.1 = Matrix size 1 2.0 = Matrix size 2 where a marginal row or column equal 0 2.1 = Matrix size 2 and diagonal 2.2 = Matrix size 2 not diagonal 3.0 = Matrix size greater than 2 with a marginal row or column equal 0 3.1 = Matrix size greater than 2 and diagonal 3.2 = Matrix size greater than 2 with k-1 row or columns with marginal equal to a_ii or k-2 where marginals of columns and rows equals to a_ii 3.3 = Matrix size greater than 2 with h where Xt - sum(diag(M1)) = Xr[h] + Xc[h] - 2 * M1[h,h] 3.4 = Matrix size greater than 2 with i where a_ii = 0 or equl to marginals by columns or row 3.5 = Matrix size greater than 2 without a_ii = 0 or without marginals by columns or row equals to zero

Usage

1

Arguments

M1

Matrix. Matrix reduced.

k

Integer. Size of the problem.

Examples

1
2
GetProblemType(matrix(c(1,2,0,3,4,0,0,0,1),3,3), 3)
GetProblemType(matrix(c(1,0,0,0,2,0,0,0,3),3,3), 3)

toni-1991/Delta documentation built on Dec. 9, 2019, 8:54 a.m.